html-tags (3.3.1)

Published 2026-02-24 13:57:48 +00:00 by atheaadmin

Installation

registry=
npm install html-tags@3.3.1
"html-tags": "3.3.1"

About this package

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

const htmlTags = require('html-tags');

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

And void (self-closing) tags:

const voidHtmlTags = require('html-tags/void');

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

Contribute

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

Dependencies

Development Dependencies

ID Version
ava ^1.4.1
tsd ^0.7.2
xo ^0.24.0

Keywords

html html5 tags elements list whatwg w3c void self-closing
Details
npm
2026-02-24 13:57:48 +00:00
0
Sindre Sorhus
MIT
latest
2.6 KiB
Assets (1)
Versions (1) View all
3.3.1 2026-02-24