The Time object represents an HTML <time> element.
You can access a <time> element by using getElementsByTagName():
You can create a <time> element by using the document.createElement() method:
Property | 説明 |
---|---|
dateTime | Sets or returns the value of the datetime attribute in a <time> element |
The Time object also supports the standard properties and events.
HTML reference: HTML <time> tag