tags-html
v1.0.3
Published
π List of all standard HTML5 tags π
Downloads
16
Maintainers
Readme
π Description
π¦ Installation
// To install using npm
npm install --save tags-html
// To install using yarn
yarn add tags-html
βΆοΈ Getting started
// If you use ES5-
const htmlTags = require("tags-html");
// If you use ES6+ or Typescript
import htmlTags from "tags-html";
// Import
import htmlTags, { interactiveTags, formsTags, tabularTags } from "tags-html";
const allTags = htmlTags
/* Return:
[
'html',
'head',
'title',
'base',
'link',
'meta',
'style',
'script',
'noscript',
'body',
'section',
'nav',
'article',
'aside',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'header',
'footer',
... more items,
*/
const interactiveTags = interactiveTags
// Return: [ 'details', 'summary', 'command', 'menu' ]
const formsTags = formsTags
/* Return: [
'form', 'fieldset',
'legend', 'label',
'input', 'button',
'select', 'datalist',
'optgroup', 'option',
'textarea', 'keygen',
'output', 'progress',
'meter'
]
*/
const tabularTags = tabularTags
/* Return: [
'table', 'caption',
'colgroup', 'col',
'tbody', 'thead',
'tfoot', 'tr',
'td', 'th'
]
*/
β·οΈ Options
| Group | Count |
|---------|----------|
| rootTags | 1
|
| metadataTags | 6
|
| scriptingTags | 2
|
| sectionsTags | 15
|
| groupContentTags | 13
|
| textSemanticsTags | 20
|
| editionsTags | 2
|
| embeddedTags | 14
|
| tabularTags | 10
|
| formsTags | 15
|
| interactiveTags | 4
|
| total | 111
|
π© Stay in touch
- Author Yoni Calsin
- Twitter Yoni Calsin
π License
Tags-Html is MIT licensed.