https://github.com/sindresorhus/html-tags
List of standard HTML tags
https://github.com/sindresorhus/html-tags
Last synced: 3 days ago
JSON representation
List of standard HTML tags
- Host: GitHub
- URL: https://github.com/sindresorhus/html-tags
- Owner: sindresorhus
- License: mit
- Created: 2013-12-13T14:53:56.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T17:58:31.000Z (8 months ago)
- Last Synced: 2025-03-22T14:35:26.300Z (23 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 184
- Watchers: 5
- Forks: 29
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- jimsghstars - sindresorhus/html-tags - List of standard HTML tags (JavaScript)
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
```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.