1.

Which of the following attribute is used to display date/time content?(a) time(b) datetime(c) date(d) yearThis question was posed to me in homework.My query is from HTML5 Document Structure Changes topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (b) DATETIME

Explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions