Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/html-tags

List of standard HTML tags
https://github.com/sindresorhus/html-tags

Last synced: 3 days ago
JSON representation

List of standard HTML tags

Awesome Lists containing this project

README

        

# 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

```sh
npm install html-tags
```

## Usage

```js
import htmlTags from 'html-tags';

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

And void (self-closing) tags:

```js
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.