HTML time datetime attribute
Examples
Specified date time elements:
<P> I <time datetime = "2008-02-14"> Valentine's Day </ time> have an appointment. </ P>
try it"
Browser Support
datetime property does not render any special effects in all browsers.
Definition and Usage
datetime attribute specifies the date or time. When the date or time is not specified in the content of the element, the use of the property.
Differences between HTML 4.01 and HTML5
<Time> tag HTML5 is the new label.
grammar
<time datetime="YYYY-MM-DDThh:mm:ssTZD">
Property Value
值 | 描述 |
---|---|
YYYY-MM-DDThh:mm:ssTZD | 日期或时间。下面解释了其中的成分:
|
HTML <time> tag