The <article> tag includes in HTML5 tags. The <article> tag is used to represent an article. The <article> tag specifies independent, self-contained content.More specifically,the content within the
tag is independent from the other content.
<article> element may include a Forum post,Blog post,News story,user- submitted comment etc. We also use <article> on ‘static’ content pages,just like the About and Contact pages, as <article> can be used for “any other independent item of content. an <article> element typically has a heading.

You can understand use of <article> tag by a comment example:-

e.g.:-

<article class="tour_review">
<header>
<h2>TaJ Mahal</h2>
</header>
<section class="user_reviews">
<article class="user_review">
<p>It's sign of love.</p>
<footer>
<p>
Posted on <time datetime="2013-05-16 15:00">May 16</time> by Ndal.
</p>
</footer>
</article>
<article class="user_review">
<p>Taj Mahal is glory of india.</p>
<footer>
<p>
Posted on <time datetime="2015-05-17 19:00">May 17</time> by
Krishna. </p>
</footer>
</article>
</section>
<section class="main_review">
<p>trip were great!</p>
</section>
<footer>
<p>
Posted on <time datetime="2015-05-15 19:00">May 15</time> by Nandlal.
</p>
</footer>
</article>


Result:-

TaJ Mahal

It's sign of love.

Posted on by Ndal.

Taj Mahal is glory of india.

Posted on by Krishna.

trip were great!

Posted on by Nandlal.



The publication date and time of an <article> element can be described using the pubdate attribute of a <time> element.

0 comments:

Post a Comment