Home / CSE / HTML- CS :: Discussion

Discussion :: HTML- CS

  1. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element ?

  2. A.

     The value is the element’s datetime value.

    B.

     The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute.

    C.

     The value is the value of the element’s value attribute, if it has one, or the empty string otherwise.

    D.

     The value is the element’s textContent.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    For date- and time-related data, the time element and its datetime attribute can be used.


Be The First To Comment