HTML5 article Tag

The tag <article> introduced in HTML5 and can be used for a blog post, article, comment etc. As the name suggests, the HTML5 article tag specifies self-contained content.

Here’s the structure how <article> is used,

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
 <article>
…
</article>
</body>]
</html>

Example

Here’s an example showing the working of the HTML5 <article> element,

<!DOCTYPE html>
<html>
<head>
<title>Understanding HTML5 article tag</title>
</head>
<body>
 <article>
  <h1>One Day International</h1>
  <p>It is a form of cricket played between two teams. The overs are limited (fixed) and 
  the match has international status. It goes on for a day.</p>
</article> 
</body>
</html>

Here’s the output,

HTML5 Article tag

HTML5 Canvas
HTML5 aside Tag
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment