Can some one explain to me in layman's terms what the following sentences, from the W3C specification working draft, below mean about the pubdate attribute for the time element below.
For each
articleelement, there must be no more than onetimeelement with apubdateattribute whose nearest ancestor is thatarticleelement. Furthermore, for each Document, there must be no more than one time element with apubdateattribute that does not have an ancestorarticleelement.
It means that time value is related to time when article is published. That is info for robots or some machine which reads content.
<article>
<header><h1>Article Title</h1></header>
<footer>Published on <time pubdate>2009-08-30</time>.</footer>
<p>I put a bike bell on his bike.</p>
</article>
As above, the time tag is used to tell for instance to google search engine when article was published in public.
Ancestor, means, nearest parent article tag for time tag. Ancestor can be grand parent or grand grand parent. Depends how much time tag is nested deep in DOM tree. It can be N-th generation child while no article tag is in between.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With