THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <time> pubdate Attribute

❮ HTML <time> tag

Example

Specify the publication date of an <article> element:

<article>
<time datetime="2011-09-28" pubdate="pubdate"></time>
Hello world. This is an article....
</article>
Try it Yourself »

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
pubdate Yes Yes Yes Yes Yes

The pubdate attribute does not render as anything special in any of the major browsers.


Definition and Usage

The pubdate attribute indicates that the date/time in the <time> element is the publication date of the document (or the nearest ancestor <article> element).


Differences Between HTML 4.01 and HTML5

The <time> tag is new in HTML5.


Syntax

<time pubdate="pubdate">

Attribute Values

Value Description
pubdate Indicates that the date/time in the <time> element is the publication date of the document (or the nearest ancestor <article> element)

❮ HTML <time> tag