{"id":2967,"library":"html-tag-names","title":"HTML Tag Names","description":"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.","status":"active","version":"0.1.2","language":"en","source_language":"en","source_url":"https://github.com/Riverside-Healthcare/html-tag-names","tags":["html","tags","web-development","utility","reference"],"install":[{"cmd":"pip install html-tag-names","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"note":"The primary list of HTML tag names is imported directly from the package. Note the lowercase package name in the import path.","symbol":"html_tag_names","correct":"from html_tag_names import html_tag_names"}],"quickstart":{"code":"from html_tag_names import html_tag_names\n\nprint(f\"Total HTML tags: {len(html_tag_names)}\")\nprint(f\"First 5 tags: {html_tag_names[:5]}\")\n\nif 'div' in html_tag_names:\n    print(\"'div' is a known HTML tag.\")\n\n# Example of checking for a deprecated tag (which are included)\nif 'font' in html_tag_names:\n    print(\"'font' is in the list, though it is a deprecated tag.\")","lang":"python","description":"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."},"warnings":[{"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.","message":"The `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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always convert input tag names to lowercase before checking against `html_tag_names` (e.g., `my_tag.lower() in html_tag_names`).","message":"All 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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"For tasks like parsing HTML documents, extracting content, or validating HTML structure, consider using dedicated libraries such as Beautiful Soup (`beautifulsoup4`).","message":"This 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.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}