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:
- <!DOCTYPE HTML>
- <html>
- <body>
- <article>
- <h1>Title</h1>
- <p>this is article block.
- </br>this is article block.
- </p>
- </article>
- </body>undefined</html>
The output will look like below: