HTML General Concepts

Source: Internet
Author: User
Tags format empty end tag name
Concept

HTML General Concepts:

This section will briefly introduce HTML.

Full name: Hypertext mark-up Language
Text: Hypertext Markup Language.
A language for marking certain words in a common document, the purpose of which is to use tags (tag) to achieve the desired effect.

HTML is a descriptive language defined in SGML, or HTML is an application of SGML. HTML is not a programming language, such as C + + and Java, it is just markup language, basically you just understand the use of a variety of tags to understand the html,html format is very simple, but by the combination of words and tags, in the editorial side, any text editor city can, As long as you can save the file as a text format, the use of dedicated web page editing tools is certainly better.

Reading notes:

This "HTML thorough analysis" is biased towards the introduction of tags, considering the understandable and each section of space, I do not follow the HTML classification of the blog, which makes you more likely to choose interesting tags, which only "file tag" is necessary, the rest can be optional. This article will not mention any web editing software, as long as you have mastered HTML, any web editing tool can become a sharp weapon. (As long as you have deep internal strength, leaves can also kill)

Tag notation:

• Any markings are enclosed by "<" and ">", such as <P>
• There is no white space between the tag name and the less than sign.
• Some tags need to be added with parameters, some not. such as <font size= "+2">Hello</font>
• Parameters can only be added to the start tag.
• The symbol "/" before the tag name of the starting tag is the end mark, such as </font>
• Tag letters are both uppercase and lowercase.

Containment mark and empty tag:

Mark is divided into containment mark and empty mark by type

1. Containment Mark

As the name suggests, it surrounds the text with a start tag and an end tag to achieve the desired effect.

For example, HTML Source: <b>creation of webpage</b> is my favourite.
Displayed: creation of webpage is my favourite.

Where <b></b> is called containment mark. It is displayed in bold with the start tag <b> and the end tag </b> marked text creation of webpage, which displays an error display in both cases.

2. Blank Mark

Indicates that the tag appears alone, and that only the start tag has no end tag.

For example, HTML Source:

I Love creation of webpage. <br> It ' s a wonderful place.

Show as:

I Love creation of webpage.
It ' s a wonderful place.

Where the newline Mark <br> is an empty tag.
It works by showing everything that is behind the tag on the next line, and it doesn't make sense with the end tag, but some people add an end tag to the empty tag, which is for readability, and has no effect on HTML.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.