html-tags

  • Version 4.0.0
  • Published
  • 5.76 kB
  • No dependencies
  • MIT license

Install

npm i html-tags
yarn add html-tags
pnpm add html-tags

Overview

List of standard HTML tags

Index

Variables

variable htmlTags

const htmlTags: readonly HtmlTags[];
  • List of standard HTML tags.

    Example 1

    import htmlTags from 'html-tags';
    console.log(htmlTags);
    //=> ['a', 'abbr', 'acronym', …]

variable voidHtmlTags

const voidHtmlTags: readonly VoidHtmlTags[];
  • List of standard, self-closing HTML tags.

    Example 1

    import {voidHtmlTags} from 'html-tags';
    console.log(voidHtmlTags);
    //=> ['area', 'base', 'br', …]

Type Aliases

type HtmlTags

type HtmlTags =
| 'a'
| 'abbr'
| 'address'
| 'area'
| 'article'
| 'aside'
| 'audio'
| 'b'
| 'base'
| 'bdi'
| 'bdo'
| 'blockquote'
| 'body'
| 'br'
| 'button'
| 'canvas'
| 'caption'
| 'cite'
| 'code'
| 'col'
| 'colgroup'
| 'data'
| 'datalist'
| 'dd'
| 'del'
| 'details'
| 'dfn'
| 'dialog'
| 'div'
| 'dl'
| 'dt'
| 'em'
| 'embed'
| 'fieldset'
| 'figcaption'
| 'figure'
| 'footer'
| 'form'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'head'
| 'header'
| 'hgroup'
| 'hr'
| 'html'
| 'i'
| 'iframe'
| 'img'
| 'input'
| 'ins'
| 'kbd'
| 'label'
| 'legend'
| 'li'
| 'link'
| 'main'
| 'map'
| 'mark'
| 'math'
| 'menu'
| 'menuitem'
| 'meta'
| 'meter'
| 'nav'
| 'noscript'
| 'object'
| 'ol'
| 'optgroup'
| 'option'
| 'output'
| 'p'
| 'param'
| 'picture'
| 'pre'
| 'progress'
| 'q'
| 'rb'
| 'rp'
| 'rt'
| 'rtc'
| 'ruby'
| 's'
| 'samp'
| 'script'
| 'search'
| 'section'
| 'select'
| 'slot'
| 'small'
| 'source'
| 'span'
| 'strong'
| 'style'
| 'sub'
| 'summary'
| 'sup'
| 'svg'
| 'table'
| 'tbody'
| 'td'
| 'template'
| 'textarea'
| 'tfoot'
| 'th'
| 'thead'
| 'time'
| 'title'
| 'tr'
| 'track'
| 'u'
| 'ul'
| 'var'
| 'video'
| 'wbr';

    type VoidHtmlTags

    type VoidHtmlTags =
    | 'area'
    | 'base'
    | 'br'
    | 'col'
    | 'embed'
    | 'hr'
    | 'img'
    | 'input'
    | 'link'
    | 'menuitem'
    | 'meta'
    | 'param'
    | 'source'
    | 'track'
    | 'wbr';

      Package Files (1)

      Dependencies (0)

      No dependencies.

      Dev Dependencies (2)

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/html-tags.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/html-tags)
      • HTML
        <a href="https://www.jsdocs.io/package/html-tags"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>