Demo B: Handy Interactive Elements

<details> and <summary>

98% support.

A pair of elements for creating collapsible content.


Basic Example Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
Styled Example Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.

<dialog>

An element and JS API for creating a box or other interactive component, such as a dismissible alert, inspector, or subwindow.


This dialog uses no JavaScript!!! 🤠

Just a regular old dialog.

My favorite seal.

Menu.

I'll go away soon. 👍

Popover API

A set of HTML attributes and JS API for creating and controlling dialog-like behavior in other kinds of elements.

popover vs <dialog>:


So basic.

In your corner.

Close me like you mean it.

All eyes on me.

Soooo smoooooth.

Dialog! Popover!