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: