HTML - tags - <details>

#36 of 147
details
Next dfn
Prev del

 <html>
 <body>
    <details>
        <summary>How fast does light travel?</summary>
        <p>The speed of light is 186,000 miles per second,
        or 300,000,000 meters per second.</p>
    </details>
 </body>
 </html>
 

The details element creates a control that can be expanded to reveal additional information.

A live example:


How fast does light travel?

The speed of light is 186,000 miles per second, or 300,000,000 meters per second.


N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath