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
- <body>
- <header>
- <H1>body Title</H1>
- <nav>
- Navigation bar
- </nav>
- </Header>
- < section id=' left '>
- <header>
- Area Header
- </Header>
- <article>
- <header>
- Article header
- </Header>
- <p> paragraph </P>
- <p> paragraph two </P>
- <aside>
- Side bar
- </aside>
- <footer>
- End of article
- </footer>
- </Article>
- <footer>
- Area tail
- </footer>
- </Section>
- < section id=' right '>
- <header>
- Area Header
- </Header>
- <nav>
- Right navigation bar
- </nav>
- </Section>
- <footer>
- <p>copy right. </P>
- </footer>
- </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