TOP CATEGORIES

×

What is the purpose of Article tag in HTML5?

S

Sameer Sagar

Purpose of <article> Tag in HTML5

The <article> tag element represents a complete composition in a web page or web application that is independently distributable e.g. in syndication in HTML5. 

  • The <article> tag is designed to show short information about a blog, a user-submitted comment/news story, a heading, time & date, and who is writing that blog entry, it also provides a link to read the complete article information.
  • The <article> tag is a new tag in HTML5. 

Syntax Example of <article> Tag

<article>

  <h2>Insert Title Here</h2>

  <p>Insert an article paragraph of text here</p>

 <h4>Name of who right th article</h4>

 <time>10:40 AM | August 15th, 2019</time>

</article>

The <article> tag is most commonly used to contain information that may be distributed independently from the rest of the site OR blogging site.

1 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)