Skip to content

Repository files navigation

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

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

And void (self-closing) tags:

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.

About

List of standard HTML tags

Resources

Code of conduct

Contributing

Security policy

Stars

195 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages