What is the use of HTML5 aside tags? Summary of the use of HTML5 aside tags (with examples)

Source: Internet
Author: User
This article mainly introduces about HTML5 in the aside label, introduced the role of the label and the use of the method example, aside label as the sidebar of the article, its role is quite large, of course, there are two methods used in website production examples. Well, let's take a look at this article.

First, let's take a look at the meaning of this HTML5 aside tag:

The <aside> tag defines what is outside of its content.

The content of the aside should be relevant to nearby content.

HTML5 the role of aside tags:

<aside> content can be used as the sidebar of the article

The <aside> tag defines content other than article. The content of aside should be related to the content of article. (This is topic.alibabacloud.com)

<p> Hello, this is topic.alibabacloud.com. URL is www.php.cn</p><aside>  

The effect is the following picture:

Two ways to use aside tags in HTML5:

Aside elements in the site production mainly has the following two ways to use

1. Included in the article element as the main content of the subsidiary Information Section, wherein the content can be related to the current article relevant information, ranking interpretation, and so on.

<article>  

First look at the effect:

2. Use the Subordinate Information section as a page or site global outside of the article element. The most typical is the sidebar, where the content can make links, other articles in the blog list, ad units and so on.

<aside>  

Finally look at the effect:

Related Article

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.