html-tag-names
List of known HTML tag names
Decision gist · record as of 2026-08-14
Yes, if you need a simple, dependency-free reference of valid HTML tag names. The package is stable (no vulnerabilities, low install friction), but be aware it is dormant—last release was 2022-03-09—so it will not track future HTML spec changes. Avoid if you need an actively maintained, up-to-date tag list or if GPL-3.0-or-later licensing conflicts with your project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python, no runtime dependencies, and packaged as a wheel.
- Maintenance is dormant—last release was 2022-03-09 and last commit 2024-10-08—so expect no active updates, though the data itself is unlikely to change frequently.
License · maintenance · safety
GPL-3.0-or-later (copyleft) — Licensed under GPL-3.0-or-later (copyleft). Any derivative work or bundled distribution must also be GPL-compatible; this may restrict use in proprietary or closed-source projects.
last release 2022-03-09 (1619 days) · last repo commit 2024-10-08
0 known vulnerabilities (OSV.dev, 2026-08-14) · 443,462 downloads/mo, #6,629 on PyPI
Alternatives
Verify before relying
from HtmlTagNames import html_tag_names
print(len(html_tag_names)) # => 148
print('a' in html_tag_names) # Check if a tag is valid- Whether the tag list is kept in sync with the HTML living standard or if it reflects a snapshot from a specific date.
- Whether the package is actively maintained or if dormancy means the tag list may lag behind new HTML specs.
What it is and what it does
html-tag-names is a simple data package that exports a list of 148 known HTML tag names, covering both legacy tags (like `basefont` and `nextid`) and modern ones (like `template` and `shadow`). It is a Python port of the npm package of the same name and includes tags from across all versions of the HTML standard.
The package has no runtime dependencies and is intended for use cases where you need to validate or enumerate valid HTML tag names programmatically. It is most useful in HTML parsing, validation, or generation tools where you need to check whether a given string is a recognized HTML tag.
Use it for
- Validate user input or parsed markup to check if a tag name is a recognized HTML element.
- Generate or filter lists of valid tags in HTML parsing or linting tools.
- Build HTML template engines or code generators that need to distinguish valid tags from custom elements.
- Create documentation or reference tools that enumerate all standard HTML tags.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple, dependency-free reference of valid HTML tag names.
The package is stable (no vulnerabilities, low install friction), but be aware it is dormant—last release was 2022-03-09—so it will not track future HTML spec changes. Avoid if you need an actively maintained, up-to-date tag list or if GPL-3.0-or-later licensing conflicts with your project.
Install
html-tag-names on PyPI
Before you install
Low friction: pure Python, no runtime dependencies, and packaged as a wheel. Maintenance is dormant—last release was 2022-03-09 and last commit 2024-10-08—so expect no active updates, though the data itself is unlikely to change frequently.
License in practice
Licensed under GPL-3.0-or-later (copyleft). Any derivative work or bundled distribution must also be GPL-compatible; this may restrict use in proprietary or closed-source projects.
Quickstart
from HtmlTagNames import html_tag_names
print(len(html_tag_names)) # => 148
print('a' in html_tag_names) # Check if a tag is valid
Verify before relying
- Whether the tag list is kept in sync with the HTML living standard or if it reflects a snapshot from a specific date.
- Whether the package is actively maintained or if dormancy means the tag list may lag behind new HTML specs.
Package facts
| License | GPL-3.0-or-later copyleft |
| Python support | Supports the current Python release >=3.7,<4.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,619 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 443,462 / month, #6,629 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: html_tag_names-0.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “valid html tags”
- html-tag-namesProvides a curated list of valid HTML tag names across all HTML…
- html-sanitizerSanitizes HTML fragments by enforcing an allowlist of safe tags and…
- html-void-elementsProvides a list of HTML void element tag names (self-closing tags…
Give your agent the search over MCP, or paste the wish link into any chat.
More HTML packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.
Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.
Install it if you need to parse Markdown in Python.
See also html-void-elements · flake8-variables-names · bleach-allowlist · html-sanitizer · meld3 · mdurl · json2html · sphinxcontrib-serializinghtml · curlylint · pytest_tagging