& lt/div & gt; be equal toA section represents a the" />
Current location - Education and Training Encyclopedia - Graduation thesis - What's the difference between section article in HTML5?

1, section (chapter)

Simply put, section is a semantic div, such as:

& ltdiv class="section " >& lt/div & gt; be equal to

<
What's the difference between section article in HTML5?

1, section (chapter)

Simply put, section is a semantic div, such as:

& ltdiv class="section " >& lt/div & gt; be equal to

<
What's the difference between section article in HTML5?

1, section (chapter)

Simply put, section is a semantic div, such as:

& ltdiv class="section " >& lt/div & gt; be equal to

A section represents a theme and usually has a title. Div should be used when the tag is only used for style or convenient script use. Generally speaking, section is applicable when the element content clearly appears in the document outline, article chapters, blog entries, user comments or numbered parts of papers.

2. Articles (articles)

Article is a special section tag, which has more explicit semantics than section, and it represents an independent and complete related content block.

The content represented by the article can be quoted externally. For example, articles in blogs, posts in forums or comments from viewers. If the contents of elements are displayed together to express relatively independent and complete meanings, they can be defined as articles.

3. The same is true for the use of 3.nav and side, which are also special parts. If nav and side are more appropriate, don't use section.