<aside> elements
HTML<aside> elements represent a part of a page whose content is not related to the rest of the page, or is not associated, and exists alone. <aside> elements are usually displayed as sidebar (sidebar) or some insert supplemental content. Usually used to display some definitions in the sidebar, such as table of Contents, index, glossary, etc., can also be used to display relevant advertising, the author's introduction,Web applications , related links, the current page content introduction and so on.
<aside> element Usage Precautions:
Do not use the <aside> element to mark the text in parentheses, because this type of text is considered part of the main content.
Examples of Use:
xml/html Code copy content to clipboard
- <article>
- <p>
- The Disney movie <em>the Little Mermaid</em> was
- First released to theatres in 1989.
- </P>
- <aside>
- The movie earned $87 million during its initial release.
- </aside>
- <p>
- More info about the movie ...
- </P>
- </Article>
<article> elements
The article element (<article>) is named Incredibles, which can represent forum posts, magazines or news articles, blogs, user-submitted comments, interactive components, or other independent content items. Its main semantics is to express itself as an independent content structure. Each <article> element internal structure should be similar, for example, should include a header (h1-h6 element) and so on.
<article> element Usage:
When a <article> element is nested, the element represents an article related to the parent element. For example, the <article> element that represents a blog comment can be nested within the <article> element that represents the blog post.
The information for the author of the article in the <article> element is represented by the <address> element, but does not apply to nested <article> elements.
The release date and Time of an article in the <article> element can be represented by the Pubdate property of the <time> element.
Code sample
xml/html Code copy content to clipboard
- <article class="Film_review">
- <header>
- <h2> Jurassic Park </H2>
- </Header>
- < section class="Main_review">
- <p>dinos were great! </P>
- </Section>
- < section class="User_reviews">
- <article class="User_review">
- <p>way too scary for me. </P>
- <footer>
- <p>
- Posted on <time datetime="2015-05-16 19:00">may-</time> by Lisa.
- </P>
- </footer>
- </Article>
- <article class="User_review">
- <P>i agree, Dinos is my favorite. </P>
- <footer>
- <p>
- Posted on <time datetime="2015-05-17 19:00">may +</time> by Tom.
- </P>
- </footer>
- </Article>
- </Section>
- <footer>
- <p>
- Posted on <time datetime="2015-05-15 19:00">maythe </time > by staff.
- </P>
- </footer>
- </Article>
Detailed <aside> elements in HTML5 and <article> elements