The aside tag in HTML5

  • A K
  • A K
  • Updated date, Oct 18, 2019

The aside tag in HTML5

 
The <aside> tag is used to represent the block of text. The content of this block may be different from the main content or topic of the page. Like- tips, notes etc, which is given on-page. This tag is new in HTML5. We write the text between <aside> and </aside> tag. Now we write the following code for understanding how it works.
  1. <!DOCTYPE HTML>  
  2. <html>  
  3.     <h1>My Study</h1>  
  4.     <p> I am studying C,C++, JAVA and .NET.  
  5.     </br>  
  6. I am also studying SQL.  
  7. </p>  
  8. <aside>  
  9.     <h2>C</h2>  
  10.     <p>c is procedural language.</p>  
  11. </aside>undefined</html>  
The page will look like as below:

aside-tag-in-html5