lix-website/themes/lix/assets/bootstrap/node_modules/html-tags
2024-04-26 22:49:34 -06:00
..
html-tags-void.json initial commit of template 2024-04-26 22:49:34 -06:00
html-tags.json initial commit of template 2024-04-26 22:49:34 -06:00
index.d.ts initial commit of template 2024-04-26 22:49:34 -06:00
index.js initial commit of template 2024-04-26 22:49:34 -06:00
license initial commit of template 2024-04-26 22:49:34 -06:00
package.json initial commit of template 2024-04-26 22:49:34 -06:00
readme.md initial commit of template 2024-04-26 22:49:34 -06:00
void.d.ts initial commit of template 2024-04-26 22:49:34 -06:00
void.js initial commit of template 2024-04-26 22:49:34 -06:00

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

$ npm install html-tags

Usage

const htmlTags = require('html-tags');

console.log(htmlTags);
//=> ['a', 'abbr', 'acronym', …]

And void (self-closing) tags:

const voidHtmlTags = require('html-tags/void');

console.log(voidHtmlTags);
//=> ['area', 'base', 'br', …]

Contribute

Make sure to update types in index.d.ts when changing HTML elements.