HTML5 - Article Tag




HTML5 Article Tag

The <article> tag indicates autonomous, independent substance. An article ought to bode well on its own and it ought to be conceivable to disperse it autonomously from whatever remains of the site.

Here is the Syntax for <ARTICLE> Tag

Example

<!DOCTYPE html>
<html>   
<head>
<title>Title Name will go here</title>
</head>
   <body>
      <article>
      <h1>Computer</h1>
      <p>The article element should contain a piece of self-contained content that could be distributed outside the context of the page. This includes things like news articles, blog posts, or user comments.</p>
      </article>
   </body> 
</html>

Result

Title Name will go here

Computer

The article element should contain a piece of self-contained content that could be distributed outside the context of the page. This includes things like news articles, blog posts, or user comments.

HTML article Tag Main Tips

  • An article should be self-contained and be understandable with or without a context.

  • The <article> tag could potentially hold a blog post, news story, comment or a forum post.

  • All Global and Event attributes are supported by the <article> tag.

  • The <article> tag is new in HTML5.