Socket
Book a DemoInstallSign in
Socket

html-tag-names

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-tag-names

List of known HTML tag-names

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
78K
-45.58%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

html

FAQs

Package last updated on 17 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts