Loading...
HTML <aside> Tag

HTML <aside> Tag

In this tutorial, we will learn about aside tag in HTML with the help of examples.


<aside> Tag

Aside tag <aside> specifies a section of a page aside from the related section.
The content inside aside tag should be indirectly related to the surrounding content.
This tag mainly used to place a sidebar in a document.

Note : It doesn't render anything special in a browser i.e. we have to use CSS to style the <aside> tag.

Syntax

<aside>....</aside>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Aside Tag</title>
  </head>
  <body>
    <aside>
      <h2>PHP</h2>
      <p>PHP is PHP Hypertext Preprocessor.</p>
    </aside>
  </body>
</html>

Output


Global Attribute

Aside Tag support all the global attributes of HTML.


Event Attribute

Aside Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of Aside tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML audio Tag.

- Related Topics