-
Which of the following attribute is used to display date/time content?
-
- date
- year
- datetime
- time
- None of these
Correct Option: C
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.