HTML Does That?
A Few New and Lesser-Used HTML Elements
Dialogs and Popovers
Modals Made Easier
Dialogs
Dialogs
The HTML <dialog>
element is used to create both modal and non-modal dialog boxes. Modal dialog boxes interrupt interaction with the rest of the page being inert, while non-modal dialog boxes allow interaction with the rest of the page.
Dialogs
Popover API
Popover API
The Popover API provides developers with a standard, consistent, flexible mechanism for displaying popover content on top of other page content. Popover content can be controlled either declaratively using HTML attributes, or via JavaScript.
Popover API
Templates
Adding Elements to the DOM
Templates
The <template
> HTML element is a mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
Templates
Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does process the contents of the <template>
element while loading the page, it does so only to ensure that those contents are valid; the element's contents are not rendered, however.
Templates
deck
By kayesspea
deck
- 19