HTML <time> pubdate Attribute
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).
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