html-void-elements
List of known void HTML elements
Last updated 6 years ago by wooorm .
MIT · Repository · Bugs · Original npm
$ cnpm install html-void-elements 
SYNC missed versions from official npm registry.

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: there’s one special case: menuitem. W3C specifies it to be void, but WHATWG doesn’t. 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

Current Tags

  • 2.0.1                                ...           latest (4 years ago)

2 Versions

  • 2.0.1                                ...           4 years ago
  • 1.0.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org