Package Exports
- html-tag-names
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-tag-names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
html-tag-names
List of known HTML tag names.
Includes ancient (for example, nextid
and basefont
) and modern (for example,
shadow
and template
) names from the HTML living standard.
The repo includes a script to crawl specs to include newly introduced names.
Install
npm:
npm install html-tag-names
Use
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 lowercase tag names.
Related
mathml-tag-names
— List of MathML tagssvg-tag-names
— List of SVG tagsreact-tag-names
— List of React’s HTML and SVG tag namessvg-element-attributes
— Map of SVG elements to allowed attributeshtml-element-attributes
— Map of HTML elements to allowed attributesaria-attributes
— List of ARIA attributes