Detailed <aside> elements in HTML5 and <article> elements

Source: Internet
Author: User

<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
  1. <article>
  2. <p>
  3. The Disney movie <em>the Little Mermaid</em> was
  4. First released to theatres in 1989.
  5. </P>
  6. <aside>
  7. The movie earned $87 million during its initial release.
  8. </aside>
  9. <p>
  10. More info about the movie ...
  11. </P>
  12. </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
  1. <article class="Film_review">
  2. <header>
  3. <h2> Jurassic Park </H2>
  4. </Header>
  5. < section class="Main_review">
  6. <p>dinos were great! </P>
  7. </Section>
  8. < section class="User_reviews">
  9. <article class="User_review">
  10. <p>way too scary for me. </P>
  11. <footer>
  12. <p>
  13. Posted on <time datetime="2015-05-16 19:00">may-</time> by Lisa.
  14. </P>
  15. </footer>
  16. </Article>
  17. <article class="User_review">
  18. <P>i agree, Dinos is my favorite. </P>
  19. <footer>
  20. <p>
  21. Posted on <time datetime="2015-05-17 19:00">may +</time> by Tom.
  22. </P>
  23. </footer>
  24. </Article>
  25. </Section>
  26. <footer>
  27. <p>
  28. Posted on <time datetime="2015-05-15 19:00">maythe </time > by staff.
  29. </P>
  30. </footer>
  31. </Article>

Detailed <aside> elements in HTML5 and <article> elements

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.