Vidyalelo
HTML · Q12

HTML5

Programming · HTML · question 12

Q12

Which of the following attribute is used to display date/time content?

A.
time
B.
datetime
Answer
C.
date
D.
year

Answer: Option B

Solution

Answer: Option B
Solution:
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.