Html (1)--Common tags

Source: Internet
Author: User

HTML Common tags I. Basic Label

<! DOCTYPE Html>: Referencing the official DTD file--a certain constraint on the use of tags

<body>: Main label, paired appearance, most of the content is placed under the label

meta-information is information that describes the structure, semantics, use and usage of information, and so on. the browser that receives the data can determine the server from the meta-information

What the content is, what data is expected, whether the complete data is received, and whether there is an error in the process so that the customer can know the type of the transmitted object.

two. Common block-level labels

A block tag is a labeled "piece" that behaves as a line in a browser.

1. Title label, H1~h6, font size is getting smaller, such as:<body> avoid calling the title tag because you want to make the text larger.

2. Paragraph label,<p>......</p> One label per paragraph

3. Horizontal line label

4. Ordered list label, beginning with <ol> end at </ol>, each with a <li>...</li> label, entry with 1.2.3. Ordinal callout

5. Unordered list label, starting at <ul> end at </ul>, entry with "·" Dot Callout

6. Define the description label, DT tag: Define the items in the list, DD tag: Describes the items in the list.

Note: The list can be nested, if the <li>...</li>, omit the following can also be established, if omitted "/" is considered a new empty entry.

7. partition label, <div>...</div> the whole block layout of the Web page is used as a container.

Three. Common row-level labels

Multiple row-level labels are displayed in a single row (displayed by row, and not wrapped)

1. Hyperlink tags

2. Image label, ,src= "Picture address" (Resource path, local/network), alt= "hint text", is a byte-type label.

3.<span> label, <span> Line-level content such as text: </span> display highlighted content (compared to <div> label,<div> tag is block-level label can be put block-level label can also release level label )

4.<br/> label, for NewLine label, Byte label ( compared with <p> label,<p> label as paragraph label, between segment and segment, and <br/> label line break interval is small )

5 . Common special Symbols , don't forget the semicolon!

Html (1)--Common tags

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.