Which of the following attribute is used to display date/time content?
A
time
B
datetime
C
date
D
year
Correct Answer: datetime
To provide both human and machine-friendly date/time content, the element supports a datetime attribute, which should be set to the previously mentioned date format of YYYY-MM-DDThh:mm:ssTZD. Time tag defines date and time (human readable) while datetime tag display machine readable date/time.