Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T17:58:31.000Z (5 months ago)
- Last Synced: 2025-01-14T12:13:20.698Z (5 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 181
- Watchers: 6
- Forks: 27
- Open Issues: 0
-
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.