Files
actual/node_modules/html-void-elements
Rich In SQL 28d4ee94dd Init
2022-10-16 20:28:33 +01:00
..
2022-10-16 20:28:33 +01:00
2022-10-16 20:28:33 +01:00
2022-10-16 20:28:33 +01:00
2022-10-16 20:28:33 +01:00

html-void-elements

Build Downloads Size

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: theres one special case: menuitem. W3C specifies it to be void, but WHATWG doesnt. I suggest using the void form.

Install

npm:

npm install html-void-elements

Use

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' ]

API

htmlVoidElements

Array.<string> — List of lower-case tag names.

License

MIT © Titus Wormer