HTML aside tag

HTML <aside> tag forms a section of content that is separate from the main content. aside is a flow type element and is tangentially related to the central topic.

<h2> A simple side bar </h2>
<aside>
 <ul>
  <li> <a href="#"> List </a> </li>
  <li> <a href="#"> Home </a> </li>
  <li> <a href="#"> Education </a> </li>
  <li> <a href="#"> Sports </a> </li>
 </ul>
</aside>
</>

Tag Uses

Specific uses of <aside> tag

aside tag usually represents a sidebar because sidebar is repeated across different pages. And it can also be used for advertising section on the web page of a website.

Tag omission

Both starting and ending tags are necessary for the aside element.

Global Attributes

All the global attributes are applicable on the aside element.



Was this article helpful?