[go: nahoru, domu]

html-tags
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

html-tags

List of standard HTML tags

It's just a couple of JSON files that can be used in any environment.

It intentionally leaves out obsolete tags.

Install

npm install html-tags

Usage

import htmlTags from 'html-tags';

console.log(htmlTags);
//=> ['a', 'abbr', 'acronym', …]

And void (self-closing) tags:

import {voidHtmlTags} from 'html-tags';

console.log(voidHtmlTags);
//=> ['area', 'base', 'br', …]

Contribute

Make sure to update types in index.d.ts when changing HTML elements.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i html-tags

    Weekly Downloads

    10,177,204

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    5.76 kB

    Total Files

    7

    Last publish

    Collaborators

    • sindresorhus