html-tags

List of standard HTML tags

MIT 19 个版本
安装
npm install html-tags
yarn add html-tags
pnpm add html-tags
bun add html-tags
README

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.

版本列表
5.1.0 2025-08-01
5.0.0 2025-05-07
4.0.0 2024-04-30
3.3.1 2023-04-05
3.3.0 2023-04-02
3.2.0 2022-04-06
3.1.0 2019-08-18
3.0.0 2019-04-17
2.0.0 2017-06-17
1.2.0 2017-06-17
1.1.1 2015-04-22
1.1.0 2014-08-17
1.0.0 2014-08-14
0.3.2 2014-04-30
0.3.1 2014-04-16
0.3.0 2014-03-22
0.2.0 2014-01-31
0.1.1 2013-12-14
0.1.0 2013-12-13