JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 130721
  • Score
    100M100P100Q217558F
  • License MIT

List of known HTML tag-names

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 Build Status Coverage Status

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

html-tag-names is also available as an AMD, CommonJS, and globals module, uncompressed and compressed.

Usage

Dependencies:

var htmlTagNames = require('html-tag-names');

Slicing the first 20:

var first = 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' ]

And length:

var length = htmlTagNames.length;

Yields:

147

API

htmlTagNames

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

License

MIT © Titus Wormer