{"id":15413463,"url":"https://github.com/wooorm/html-tag-names","last_synced_at":"2025-04-06T20:12:25.961Z","repository":{"id":57267635,"uuid":"54126660","full_name":"wooorm/html-tag-names","owner":"wooorm","description":"List of known HTML tag names","archived":false,"fork":false,"pushed_at":"2023-11-01T11:34:10.000Z","size":82,"stargazers_count":62,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-25T15:28:15.189Z","etag":null,"topics":["element","html","name","tag"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wooorm"}},"created_at":"2016-03-17T14:55:29.000Z","updated_at":"2024-08-28T13:00:28.000Z","dependencies_parsed_at":"2023-01-23T14:00:15.841Z","dependency_job_id":"4649e3eb-41a3-415b-a314-72057ad8aead","html_url":"https://github.com/wooorm/html-tag-names","commit_stats":{"total_commits":76,"total_committers":5,"mean_commits":15.2,"dds":0.06578947368421051,"last_synced_commit":"f654e02c1c3a697a1236796a65f41892151115c4"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-tag-names","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-tag-names/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-tag-names/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-tag-names/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/html-tag-names/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276045,"owners_count":20912287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["element","html","name","tag"],"created_at":"2024-10-01T16:57:11.860Z","updated_at":"2025-04-06T20:12:25.938Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","readme":"# html-tag-names\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nList of known HTML tag names.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`htmlTagNames`](#htmltagnames)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a list of HTML tag names.\nIt includes ancient (for example, `nextid` and `basefont`) and modern (for\nexample, `search` and `shadow`) names from the HTML living standard.\nThe repo includes scripts to regenerate the data from the specs.\n\n## When should I use this?\n\nYou can use this package when you need to know what tag names are allowed in\nany version of HTML.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install html-tag-names\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {htmlTagNames} from 'https://esm.sh/html-tag-names@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {htmlTagNames} from 'https://esm.sh/html-tag-names@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {htmlTagNames} from 'html-tag-names'\n\nconsole.log(htmlTagNames.length) // =\u003e 148\n\nconsole.log(htmlTagNames.slice(0, 20))\n```\n\nYields:\n\n```js\n[\n  'a',\n  'abbr',\n  'acronym',\n  'address',\n  'applet',\n  'area',\n  'article',\n  'aside',\n  'audio',\n  'b',\n  'base',\n  'basefont',\n  'bdi',\n  'bdo',\n  'bgsound',\n  'big',\n  'blink',\n  'blockquote',\n  'body',\n  'br'\n]\n```\n\n## API\n\nThis package exports the identifier `htmlTagNames`.\nThere is no default export.\n\n### `htmlTagNames`\n\nList of known (lowercase) HTML tag names (`Array\u003cstring\u003e`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/mathml-tag-names`](https://github.com/wooorm/mathml-tag-names)\n    — list of MathML tag names\n*   [`wooorm/svg-tag-names`](https://github.com/wooorm/svg-tag-names)\n    — list of SVG tag names\n*   [`jgierer12/react-tag-names`](https://github.com/jgierer12/react-tag-names)\n    — list of React’s HTML and SVG tag names\n*   [`wooorm/svg-element-attributes`](https://github.com/wooorm/svg-element-attributes)\n    — map of SVG elements to attributes\n*   [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes)\n    — map of HTML elements to attributes\n*   [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes)\n    — list of ARIA attributes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/html-tag-names/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/html-tag-names/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-tag-names.svg\n\n[coverage]: https://codecov.io/github/wooorm/html-tag-names\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-tag-names.svg\n\n[downloads]: https://www.npmjs.com/package/html-tag-names\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/html-tag-names.svg\n\n[size]: https://bundlephobia.com/result?p=html-tag-names\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","funding_links":["https://github.com/sponsors/wooorm"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-tag-names","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fhtml-tag-names","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-tag-names/lists"}