HTML - Tags - <summary>

#127 of 147
summary
Next sup
Prev sub

 <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 summary element contains the header text for a details element.

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