1.0.3 ā¢ Published 4 years ago
tags-html v1.0.3
š 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.