X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook