1.0.3 ā€¢ Published 4 years ago

tags-html v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

šŸŒ 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

GroupCount
rootTags1
metadataTags6
scriptingTags2
sectionsTags15
groupContentTags13
textSemanticsTags20
editionsTags2
embeddedTags14
tabularTags10
formsTags15
interactiveTags4
total111

šŸŽ© Stay in touch

šŸ“œ License

Tags-Html is MIT licensed.