menuitem syntax
Syntax menuitem element
- start tag required: <menuitem>
- has no end tag, it's a void element
Examples menuitem element, void
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!doctype html> <> <> <>...</> </> <> < type="popup"> <> </> </> </> |
Video demonstration menuitem element, syntax
HTML5 menuitem element, syntax Tutorial
min | video details |
---|---|
00:06 | video tutorial: menuitem element, syntax ⁄ place in page |
00:12 | syntax menuitem |
00:12 | adding menuitem element in page |
00:14 | menuitem element has: - only the start tag: <menuitem> - has no end tag; it's a void element |
00:18 | nesting menuitem |
00:18 | no element can be nested inside it; has no end tag → no 'inside' |
00:21 | can be nested only inside menu elements whose type attribute is in the popup state meaning type="popup" |