HTML <time> pubdate Attribute

HTML time Tag Reference 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

Internet Explorer Firefox Opera Google Chrome Safari

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 Reference HTML <time> tag

SHARE THIS PAGE

Color Picker

colorpicker