Giter Club home page Giter Club logo

html-tag-warehouse's Introduction

logo html-tag-warehouse

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 tags
  • document: all document tags from HTML5
  • metadata: all document tags from HTML5
  • sections: all document tags from HTML5
  • grouping: all document tags from HTML5
  • texts: all document tags from HTML5
  • edits: all document tags from HTML5
  • embedded: all document tags from HTML5
  • tabular: all document tags from HTML5
  • forms: all document tags from HTML5
  • interactive: all document tags from HTML5
  • scripting: all document tags from HTML5
  • noEndTags: all self-close or block tags from HTML5
  • paired: all paired tags from HTML5

    Paired 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

html-tag-warehouse's People

Contributors

nikolai-shabalin avatar

Stargazers

Maria avatar

Watchers

 avatar

html-tag-warehouse's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.