UNPKG

665 BMarkdownView Raw
1# html-tags [![Build Status](https://travis-ci.org/sindresorhus/html-tags.svg?branch=master)](https://travis-ci.org/sindresorhus/html-tags)
2
3> List of standard HTML tags
4
5It's just a couple of JSON files that can be used in any environment.
6
7It intentionally leaves out obsolete tags.
8
9
10## Install
11
12```
13$ npm install html-tags
14```
15
16
17## Usage
18
19```js
20const htmlTags = require('html-tags');
21
22console.log(htmlTags);
23//=> ['a', 'abbr', 'acronym', …]
24```
25
26And void (self-closing) tags:
27
28```js
29const voidHtmlTags = require('html-tags/void');
30
31console.log(voidHtmlTags);
32//=> ['area', 'base', 'br', …]
33```
34
35
36## License
37
38MIT © [Sindre Sorhus](https://sindresorhus.com)