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