|
vor 2 Jahren | |
---|---|---|
.. | ||
index.json | vor 2 Jahren | |
license | vor 2 Jahren | |
package.json | vor 2 Jahren | |
readme.md | vor 2 Jahren |
List of known void HTML elements.
Includes ancient (such as nextid
and basefont
) and modern (such as img
and
meta
) tag names from the HTML living standard.
Note: there’s one special case: menuitem
.
W3C specifies it to be void, but WHATWG doesn’t.
I suggest using the void form.
npm:
npm install html-void-elements
var htmlVoidElements = require('html-void-elements')
console.log(htmlVoidElements)
Yields:
[ 'area',
'base',
'basefont',
'bgsound',
'br',
'col',
'command',
'embed',
'frame',
'hr',
'image',
'img',
'input',
'isindex',
'keygen',
'link',
'menuitem',
'meta',
'nextid',
'param',
'source',
'track',
'wbr' ]
htmlVoidElements
Array.<string>
— List of lower-case tag names.