Which of the following defines a visible heading for <details> element?

Which of the following defines a visible heading for <details> element?
A. <summary>
B. <section>
C. <mark>
D. <main>
 
Answer: a
Explanation: The <summary> tag is new in HTML5. <summary> element defines a visible heading for <details> element. This heading can be clicked to hide/view the details. This element is not supported by Internet Explorer. Sections in document is defined by <section> element. <mark> element is used to highlight the context/paragraph/text. Main content of document is specified by <menu> element.
 

Tìm kiếm

Back
Top