Skip to content

sindresorhus/html-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 30, 2024
c632be2 · Apr 30, 2024

History

41 Commits
Apr 30, 2024
Jun 17, 2017
Apr 17, 2019
Apr 17, 2019
Apr 17, 2019
Jun 17, 2017
Apr 2, 2023
Apr 30, 2024
Apr 30, 2024
Jun 5, 2020
Apr 30, 2024
Apr 30, 2024
Apr 30, 2024

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

import htmlTags from '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.