# html-tags

> List of standard HTML tags

Latest version **5.1.0** (published 2025-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-tags
pnpm add html-tags
yarn add html-tags
bun add html-tags
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2025-08-01 |
| First published | 2013-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=20.10 |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 195 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | html, html5, tags, elements, list, whatwg, w3c, void, self-closing |

## Links

- npm: https://www.npmjs.com/package/html-tags
- Repository: https://github.com/sindresorhus/html-tags
- Homepage: https://github.com/sindresorhus/html-tags#readme
- Issues: https://github.com/sindresorhus/html-tags/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/html-tags

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 5.1.0 (latest) — 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
- … 4 more at https://npm.io/package/html-tags/versions

## 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](https://html.spec.whatwg.org/multipage/obsolete.html#non-conforming-features).

## Install

```sh
npm install html-tags
```

## Usage

```js
import htmlTags from 'html-tags';

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

And void (self-closing) tags:

```js
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.

---
_Source: https://npm.io/package/html-tags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
