Description
HTML element <aside>
is used to define a section of content that is indirectly related to the document's main content.
It is commonly used to define sidebars and callout boxes.
The below table summarizes its usage.
Usage Details | |
Placement | It is displayed as a Block element. |
Contents | It can contain any Block elements, Inline elements, and text. |
Tags | Both opening and closing tags are required. |
Versions | HTML5 |
Syntax
<aside>...</aside>
Examples
<aside>
<h1>Heading</h1>
<p>Paragraph text goes here.</p>
</aside>
Attributes
The following table shows the list of supported and unsupported attributes for the <aside>
tag.
Attribute Type | Details |
Tag-Specific Attributes | The tag <aside> does not have any tag-specific attributes. |
Global Attributes | Like all other HTML tags, the tag <aside> supports the HTML Global Attributes. |
Event Attributes | The tag <aside> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <aside>
is supported in all modern browsers.
- Google Chrome 6+
- Internet Explorer or Edge 9+
- Firefox 4+
- Apple Safari 5+
- Opera 11.1+