Note/Info The <aside> tag is a new in HTML5.
HTML5 <aside> tag
The <aside> tag defines other content which is separate from the surrounding content.
The surrounding content must be related to the content which is used inside the <aside> element.
So, the idea is to keep apart the <aside> content from its nearby content in a different section.
Syntax:
<aside> Content …</aside>
Example
<aside style="font-size:larger;font-style:Georgia;color:red;float:left;width:35%;padding-right:5px;"> Some 260 million children are still out of primary and secondary school. </aside> <p>Education is a powerful driver of development and one of the strongest instruments for reducing poverty and improving health, gender equality, peace, and stability. Developing countries have made tremendous progress in getting children into the classroom and the majority of children worldwide are now in primary school.</p>
Default CSS Value
display:block
How Browser will display
BLOCK Level.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used with comment tag
No specific attribute
Global Attributes
The <aside> tag supports Global attributes.
Event Attributes
The <aside> tag supports Event attributes.
Supporting Browsers
Related Tags
<article>.