15. Interactive Elements
HTML5 includes two new interactive elements, details
and menu
, and their supporting elements, summary
and command
, respectively. They support one of HTML5’s goals of making Web application development easier, richer, and more accessible by building features into native HTML elements.
This chapter explains how to leverage them to create application-style toolbars and contextual menus (in the case of menu
), as well as expandable and collapsible information and form control modules (in the case of details
). Please be aware, though, that much of the native functionality that these elements promise doesn’t exist in any major browser at the time of this writing. That is expected to change as browsers continue to incorporate ...
Get The HTML Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.