Html 5 Time Tag

In the html5 <time> tag is used to add time or date or both date and time in HTML page. Which tag introduced in html5.Datetime attribute is used to give date or time for time tag and pubdate attribute is used to publicate date and time for time tag in the Html page.

Syntax:

<time> ... </time>

Example Code

I will come tomorrow at <time> 09:00 </time> pm.

Out Put:



I will come tomorrow at pm.

In the above example <time> tag has been added for "I will come tomorrow at 09:00 pm" sentence.





Content