In this topic, we described about the <aside> tag along with detailed example.
The <aside> element was introduced in HTML 5. Defines some content aside from the content placed in the HTML document. The <aside> tag used to represent to aside the content in the HTML documents.
The type of content represented in sidebars or in highlighted text can be represented by using aside. The normal rule is, aside content should be related to the surrounding content. The aside content can be coded in between the opening and closing tags <aside></aside>.
The <aside> content could be placed as a sidebar in an article. The list, pull-quotes or snippets are the examples that will be coded in aside tags. Asides are usually styled differently to the rest of the article to make them attractive to the viewers.
<!DOCTYPE html> <html> <head> <title> aside example</title> </head> <body> <aside> <h2>aside Heading</h2> <!-- aside content --> <p>aside content here</p> </aside> <!-- web page content --> <p>Actual content here</p> </body> </html>