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-namesVerified import paths — ran on the pinned version, not inferred.
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.
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.
Always convert input tag names to lowercase before checking against `html_tag_names` (e.g., `my_tag.lower() in html_tag_names`).
For tasks like parsing HTML documents, extracting content, or validating HTML structure, consider using dedicated libraries such as Beautiful Soup (`beautifulsoup4`).
No dependency data recorded yet.