Advertisement
Home Open Editor ❯

HTML <time> pubdate Attribute

Example

<article>
<p>On <time datetime="2021-01-01T01:00:00" pubdate="pubdate">01:00</time></p>

<h2>HTML</h2>
<p>The first version of HTML was written by Tim Berners-Lee in 1993. Since then, there have been many different versions of HTML. The most widely used version throughout the 2000`s was HTML 4.01, which became an official standard in December 1999.</p>
</article>

Try this code ❯

Meaning

The pubdate Boolean attribute, when specified, indicates that the date and time given by this element should be applied as the publication date of an enclosing <article> element.

Notes:


Standard Syntax

<time pubdate="pubdate">...</time>


Advertisement

Attribute Values

Value Description
pubdate This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement