1 | # 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 | ## Install
|
10 |
|
11 | ```
|
12 | $ npm install html-tags
|
13 | ```
|
14 |
|
15 | ## Usage
|
16 |
|
17 | ```js
|
18 | const htmlTags = require('html-tags');
|
19 |
|
20 | console.log(htmlTags);
|
21 | //=> ['a', 'abbr', 'acronym', …]
|
22 | ```
|
23 |
|
24 | And void (self-closing) tags:
|
25 |
|
26 | ```js
|
27 | const voidHtmlTags = require('html-tags/void');
|
28 |
|
29 | console.log(voidHtmlTags);
|
30 | //=> ['area', 'base', 'br', …]
|
31 | ```
|