HTML5 and CSS3 Learning practice--the basic content dividing label

Source: Internet
Author: User

After dividing the area of the page from the location, you need to use the content label of the page, such as <article>,<aside>,<nav>,<p >, and so on. Pages, these content tags and location tags are interleaved, such as the following:

HTML code
  1. <body>
  2. <header>
  3. <H1>body Title</H1>
  4. <nav>
  5. Navigation bar
  6. </nav>
  7. </Header>
  8. < section id=' left '>
  9. <header>
  10. Area Header
  11. </Header>
  12. <article>
  13. <header>
  14. Article header
  15. </Header>
  16. <p> paragraph </P>
  17. <p> paragraph two </P>
  18. <aside>
  19. Side bar
  20. </aside>
  21. <footer>
  22. End of article
  23. </footer>
  24. </Article>
  25. <footer>
  26. Area tail
  27. </footer>
  28. </Section>
  29. < section id=' right '>
  30. <header>
  31. Area Header
  32. </Header>
  33. <nav>
  34. Right navigation bar
  35. </nav>
  36. </Section>
  37. <footer>
  38. <p>copy right. </P>
  39. </footer>
  40. </body>

which

<article>: Represents an independent text content, usually also according to the location label division head, tail, area, etc.;

<aside>: Refers to the paragraph content, body content related to the sidebar, generally used in <article> ;

<nav>: Guide navigation content;

<p>: Refers to a separate paragraph, generally used in <article> ;

: Refers to the title, generally used in .

In these content tags, you can add a location tag to divide the area.

There are many other tags that represent content types, which are described later in the learning practice.

HTML5 and CSS3 Learning practice--the basic content dividing label

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.