html-tag-warehouse
v2.6.0
Published
List of all html tags according to specification, with groups
Downloads
175
Readme
html-tag-warehouse
Is a JavaScript library that provides access to categories of HTML tags, including deprecated and unclosed tags, as well as tags from older HTML specifications. Includes CLI tools for browsing and searching tags.
Install
npm i html-tag-warehouse
Usage
Import the desired tag group and use it. The list of groups is listed later in this document. Each group is always an array
of tags.
import { all, noEndTags, deprecated, html4 } from 'html-tag-warehouse';
console.log(all); // ['html', 'head', ...]
Groups
all
: all HTML5 tagsdocument
: all document tags from HTML5metadata
: all document tags from HTML5sections
: all document tags from HTML5grouping
: all document tags from HTML5texts
: all document tags from HTML5edits
: all document tags from HTML5embedded
: all document tags from HTML5tabular
: all document tags from HTML5forms
: all document tags from HTML5interactive
: all document tags from HTML5scripting
: all document tags from HTML5noEndTags
: all self-close or block tags from HTML5paired
: all paired tags from HTML5Paired HTML tags consist of two instructions — an opening tag (also called a starting tag) that marks the beginning of a block, and a closing tag that looks the same but with an additional slash
/
. The closing tag marks the end of the block.deprecated
: tags that are not included in the HTML5 specification, but were in HTML4.html4
: all tags are from the HTML4 specification.html1
: all tags are from the first HTML specification.
cli
Interactive group selection
npx html-tag-warehouse
After entering the command, the terminal will prompt you to select a group
View all tags in a specific group
npx html-tag-warehouse --all
Any group can be specified in place of all
:
deprecated
document
noEnd
- etc...
Find the tag in all groups
npx html-tag-warehouse --search img
Finds the <img>
tag in all groups.
Tag img found in groups: all, embedded, html4, noEndTags
You can use the short alias -s
for --search
.
npx html-tag-warehouse -s img
Help
npx html-tag-warehouse --help