The <time> Tag in HTML 5
The <time> tag is used to display a time, Gregorian date, or date and time. The time element is one of the phrase elements in HTML.
- Date:
- is the latest in the year Mardi Gras falls until
- Date and time:
- Time only:
These are actual working examples of the <time> tag example code below. Hold the cursor over one of the dates or times to see it in action.