Registry / data / html-tag-names

html-tag-names

JSON →
library0.1.2pypypi✓ verified 23d ago

This library provides a static list of known HTML tag names, encompassing both historical and current tags as defined by the HTML living standard. It is a Python port of the popular npm package `html-tag-names`. The current version is 0.1.2, with releases typically occurring infrequently, primarily for data updates or minor maintenance.

pip install html-tag-names
INSTALL
IMPORT
SIG · HTML-TAG-NAMES
H
html-tag-names
datapythonv0.1.2
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

html_tag_names
from HtmlTagNames import html_tag_names
from html_tag_names import html_tag_names

This quickstart demonstrates how to import the list of HTML tag names and perform basic operations like checking its length, viewing elements, and testing for the presence of specific tags.

from html_tag_names import html_tag_names print(f"Total HTML tags: {len(html_tag_names)}") print(f"First 5 tags: {html_tag_names[:5]}") if 'div' in html_tag_names: print("'div' is a known HTML tag.") # Example of checking for a deprecated tag (which are included) if 'font' in html_tag_names: print("'font' is in the list, though it is a deprecated tag.")
Debug
Known issues
gotchaThe `html-tag-names` list includes all known HTML tags, which means it contains many deprecated or obsolete tags (e.g., `<font>`, `<center>`, `<marquee>`) alongside modern ones. Developers should be aware of current HTML standards (HTML5+) and use CSS for presentation rather than relying on deprecated HTML tags.
fix
Consult current HTML specifications and prioritize semantic HTML5 tags and CSS for styling. Use this list as a comprehensive reference, but not as a prescriptive guide for modern web development.
affects: All versions
gotchaAll tag names in the `html_tag_names` list are in lowercase. If comparing against sources or inputs that might use uppercase or mixed-case HTML tag names, conversion to lowercase will be necessary for accurate checks.
fix
Always convert input tag names to lowercase before checking against `html_tag_names` (e.g., `my_tag.lower() in html_tag_names`).
affects: All versions
gotchaThis library provides a static list of tag names for reference. It does not offer any HTML parsing, validation, manipulation, or rendering capabilities. It is simply a data source of valid tag names.
fix
For tasks like parsing HTML documents, extracting content, or validating HTML structure, consider using dedicated libraries such as Beautiful Soup (`beautifulsoup4`).
affects: All versions
Upgrade
Version history
0.1.2latest on PyPI · released Mar 9, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
6
Resources
html-tag-names — pip install html-tag-names · libregistry