Analysis of HTML language-1 ▲ Top
I. Introduction to Html
Full write: HyperText Mark-up Language Translation name: over-file labeled language (one of the translations) Short Description: a language that adds tags to certain words in a common file to achieve the expected display effect.
HTML is a descriptive language defined in SGML, or HTML is an SGML application. HTML is not a programming language, such as C ++ and Java. It is only a markup language, basically, you can understand HTML as long as you understand the usage of various tags. The HTML format is very simple. It is only composed of text and tags. In terms of editing, any text editor works, you only need to save files in ASCII plain text format. Of course, it is better to use professional Web editing software.
|
■ Read notes: |
This [HTML Analysis] focuses on the introduction of tags. Considering the ease of understanding and the length of each section, I am not classified by W3C HTML, which makes it easier for you to select tags of interest, only the [file tag] must be read, and the remainder can be selected at will. This article does not mention any web page editing software. Any web page editing tool can become a powerful tool as long as you have mastered HTML. |
■ Mark writing: |
- Any tag is enclosed by "<" and ">", as shown in <P>
- No blank characters are allowed between the tag name and the minor sign.
- Some tags need to be added with parameters, and some do not have. For example, <font size = "+ 2"> Hello </font>
- The parameter can only be added to the Start mark.
- Adding the symbol "/" before the start tag is its final tag, as shown in </font>
- Uppercase/lowercase letters.
|
■ Containment mark and empty mark: |
Tags are classified into blocking tags and empty tags by type.
- Containment mark
As the name suggests, it enclose the text with the starting mark and ending mark to achieve the expected display effect.For example, HTML source: <B> creation of webpage </B> is my favorite. Displayed:Creation of webpageIs my favorite. <B> </B> is called a blocking mark. It uses the start Mark <B> and end mark </B> to mark the text creation of webpage, so that it is displayed in bold. If either of them is lost, an error is displayed.
- Empty tag
Indicates that a tag appears independently. Only the start tag does not have an ending tag.For example, HTML source: I love creation of webpage. <br> it's a wonderful place. Displayed: I love creation of webpage. It's a wonderful place. The line feed mark <br> is an empty mark. It is used to display all the things after marking on the next line. It can be seen that the ending mark is meaningless, but some people will add an ending mark to the null mark, this is self-recognition for convenience and has no effect on HTML.
|