How to use the aside tag in HTML5? Do you know how to use the HTML5aside sidebar? This article mainly explains the definition and usage of the aside tag in HTML5, as well as the detailed explanation and precautions of the aside element in HTML5.
HTML 5
Here are examples:
<p>This summer, I finally came to PHP Chinese net.</p> <aside> <h4>Online programming</h4> PHP Chinese network is a great platform for online learning programming in China. </aside>
Detailed explanation of the
The HTML
Notes on using the
Do not use the
Two ways to use the aside tag in HTML5:
1. It is included in the article element as ancillary information part of the main content. The content can be related information related to the current article. , ranking explanation, etc.
<article> <h1>…</h1> <p>…</p> <aside>…</aside> </article>
2. Use it outside the article element as a global subsidiary information part of the page or site. The most typical one is the sidebar, which contains friendly links, lists of other articles in the blog, advertising units, etc.
<aside> <h2>…</h2> <ul> <li>…</li> <li>…</li> </ul> <h2>…</h2> <ul> <li>…</li> <li>…</li> </ul> </aside>
Tips and Notes:
Tip: The content of
What is web in HTML5? What are the elements in web storage?
What are the attributes of the HTML IMG tag? Learn how to use the IMG tag
The above is the detailed content of How to use the aside tag in HTML5? Do you know how to use the HTML5aside sidebar?. For more information, please follow other related articles on the PHP Chinese website!