Home » HTML » Html miscellaneous » Question
  1. Which of the following attribute is used to display date/time content?
    1. date
    2. year
    3. datetime
    4. time
    5. 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.



Your comments will be displayed only after manual approval.