The article tag in HTML5

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

The article tag in HTML5

 
The <article> tag is used to represent certain blocks of texts, Like articles in the newspaper, article on the web page, comments, etc. Its syntax is given below:
 
<article>
Article Blocks
</article>
 
Now, we use the <article> tag in our application. We write the following code:
  1. <!DOCTYPE HTML>  
  2. <html>  
  3.     <body>  
  4.         <article>  
  5.             <h1>Title</h1>  
  6.             <p>this is article block.  
  7.             </br>this is article block.  
  8.         </p>  
  9.     </article>  
  10. </body>undefined</html>  
The output will look like below:
 
article tag in html5