HTML and CSS Reference
In-Depth Information
<li>Wednesday, 8pm</li>
<li>Thursday, 8pm</li>
<li>Friday, 6pm and 8pm</li>
</ul>
</details>
__________
17
Fits in interactive category if type attribute is set to toolbar.
18
Visit the website
http://caniuse.com
and type
details
in the search field to see the current state
of browser support.
Unlike the previous example, which toggled only one line of text, this example shows
and hides two paragraphs and an unordered list.
Interacting with the elements will look something like
Figure 2-12
.
Figure 2-12.
A details element showing the hidden and shown state after clicking the summary
toggle
Note
The
summary
element is optional; if it is omitted, the browser will create its
own label for the
details
element, such as the text “Details.”
Search WWH ::
Custom Search