HTML Learning notes: Basic structure

Source: Internet
Author: User

0.<!doctype Html> declares that the document is HTML and must be on the first line.

1.

2.

3.<meta charset= "Utf-8" > Set document character encoding to UTF-8.

4.<title></title> contains text as a caption.

5.<body></body> is the content of the Web page.

6.

7.<section></section> is defined as a chunk in the document and supports automatic adjustment of the heading level within the label.

8.<article></article> is defined as independent content, similar to <section></section>.

9.

10.

11.<nav></nav> is defined as the navigation bar link section.

12.<ol></ol> is defined as an ordered list.

13.<ul></ul> is defined as an unordered list.

14.<li></li> is defined as a list item.

15.<a href= "http://www.cnblogs.com" ></a> defined as a link. can also point to elements within the page, such as the presence of <article id= "name" ></article>, then <a href= "#name" ></a> can point to that independent content.

16.<p></p> is defined as a paragraph.

17.<aside></aside> is defined as the sidebar, which controls the appearance of the display via CSS.

18.<footer></footer> is defined as a footer.

19.<div></div> is defined as a generic container, and more styles can be added through a common container.

20.role= "Name" adds a landmark role to the element, name refers to the ARIA specification.

21.id= "Name" adds a unique identifier for the element, name is the identifier.

22.class= "Name" specifies the category for the element, and name is the category name. You can specify more than one category.

23.title= "Name" adds a caption to the element, and name is the title. The title can be displayed when the mouse hovers over it.

24.<!--content--> To add comments to the code.

HTML Learning Notes: Basic structure

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.