@cartok/html-tag-names
v1.1.4
Published
List of known HTML tag-names
Downloads
11
Maintainers
Readme
html-tag-names
List of known HTML tag-names. Includes ancient (for example,
nextid
and basefont
) and modern (for example, shadow
and
template
) tag-names from both W3C and WHATWG.
The repo includes a script to crawl W3C and WHATWG to include newly introduced tag-names.
Installation
npm:
npm install html-tag-names
Usage
var htmlTagNames = require('html-tag-names')
console.log(htmlTagNames.length) // => 148
console.log(htmlTagNames.slice(0, 20))
Yields:
[ 'a',
'abbr',
'acronym',
'address',
'applet',
'area',
'article',
'aside',
'audio',
'b',
'base',
'basefont',
'bdi',
'bdo',
'bgsound',
'big',
'blink',
'blockquote',
'body',
'br' ]
API
htmlTagNames
Array.<string>
— List of lower-case tag-names.
Related
mathml-tag-names
— List of MathML tagssvg-tag-names
— List of SVG tagssvg-element-attributes
— Map of SVG elements to allowed attributeshtml-element-attributes
— Map of HTML elements to allowed attributesaria-attributes
— List of ARIA attributes