Have a Need to Reference Ancillary Content – Guide to Using “aside” Tag in your HTML5 Pages
Building the Right Environment to Support AI, Machine Learning and Deep Learning
The HTML5 specification introduces a new markup element to reference ancillary content, content which is tangentially related to the main content.
This new markup is the “aside” element. The HTML5 spec http://www.w3.org/html/wg/drafts/html/master/sections.html#the-aside-element states the aside markup represents a portion of a web page which contains content which is tangentially related to the main content of the article.
The “aside” element is a flow element. The “aside” element can be typically used for
- Sidebars and pull quotes,
- Grouping of “nav” elements,
- Content considered separate from the main content of the page
The “aside” element can be used both within an “article” element and outside it.
Here is a simple page containing HTML5 marking using “aside” markup element.
<title>Article sample 1</title>
<p>HTML5 sample using aside markup element</p>
<p>Sample content in aside markup element inside an article element</p>
<p>Sample content in aside markup element outside an article element</p>
When this page is rendered in a HTML5 compatible browser like Google Chrome, you can see it is rendered as below.
We can see that in a typical web document, you can use “aside” markup element to reference contextual information.
A typical usage of the “aside” markup element would be to refer to advertisements and related articles to the current topic.
In this article, we learned about the “aside” markup element. I hope you have found the information useful.
About the author
Vipul Patel is a Program Manager currently working at Amazon Corporation. He has formerly worked at Microsoft in the Lync team and in the .NET team (in the Base Class libraries and the Debugging and Profiling team). He can be reached at firstname.lastname@example.org
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...