Which HTML element tag can be used to represent and show articles or reusable content to the user?
Published September 1, 2021
The best HTML element to represent and show articles or reusable content to the user is the
article HTML element tag.
article HTML element tag, for example, is used to add independent and reusable forms of text or content in a website, such as blog posts, news articles, etc., and any other forms of content that are independent and reusable from one another.
article HTML element tag can be written like this,
<!-- Usage of the 'article' HTML element tag --> <html> <body> <!-- 'article' HTML element tag --> <article> <p>Hello World! This is a small paragraph.</p> </article> </body> </html>
article tag has been used to write independent content, as can be seen from the above code.
Some common use cases for the
article HTML element tags are to hold:
- Blog post content
- News articles
- Comments from the user
- Product reviews
etc. and every other content that is independent and reusable from each other.
See the above code live in JSBin.
That's all 😃!