Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of aside element and article element in HTML5

Shulou Source: shulou.com Published: 2022-06-03 11:46:12 11月15日 Update

This article shows you the example analysis of aside element and article element in HTML5. The content is concise and easy to understand, which can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

element

The HTML element represents a part of a page, and its content is not or is not relevant to the rest of the page, and exists alone. Elements are usually displayed as a sidebar (sidebar) or as some insert supplement. It is usually used to display some definitions in the sidebar, such as catalogue, index, glossary, etc.; it can also be used to display relevant advertising campaigns, author introductions, Web applications, related links, current page content summaries, etc.

Considerations for the use of elements:

Do not use elements to mark the text in parentheses because this type of text is considered part of the main content.

Examples of use:

The Disney movie The Little Mermaid was first released to theatres in 1989.

The movie earned $87 million during its initial release.

More info about the movie...

The element Article element () has its original name, and can represent forum posts, magazines or news articles, blogs, user-submitted comments, interactive components, or other independent content items. Its main semantic is to express that it is an independent content structure. The internal structure of each element should be similar, for example, it should contain a header (h2-h7 element) and so on. Element usage: when an element is used in nesting, the element represents an article related to the parent element. For example, elements that represent blog comments can be nested within elements that represent blog posts. The information about the author of an article in an element can be represented by an element, but it does not apply to nested elements. The publication date and time of the article in the element can be represented by the pubdate attribute of the element. Code sample XML/HTML Code copies the contents to the clipboard Jurassic Park

Dinos were great!

Way too scary for me.

Posted on May 16 by Lisa.

I agree, dinos are my favorite.

Posted on May 17 by Tom.

Posted on May 15 by Staff.

The above is an example analysis of the aside element and article element in HTML5. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Elements content articles representatives blogs examples analysis authors sides skills knowledge structure pages Chinese accessible relevant independent comments similar concise Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS Redmi Shulou Technology Shulou Information