Skip to content

djlint/html-tag-names

Repository files navigation

HTML Tag Names

List of known HTML tag names.

Python port of npm package html-tag-names.

Pypi Version Downloads

🤔 What is this?

This is a list of HTML tag names. It includes ancient (for example, nextid and basefont) and modern (for example, shadow and template) names from the HTML living standard. The repo includes scripts to regenerate the data from the specs.

⌚ When should I use this?

You can use this package when you need to know what tag names are allowed in any version of HTML.

💾 Install

pip install html-tag-names

# or

poetry add html-tag-names

✨ How to Use

from HtmlTagNames import html_tag_names

print(len(html_tag_names)) # => 148

print(html_tag_names[:20])

Yields:

[
  'a',
  'abbr',
  'acronym',
  'address',
  'applet',
  'area',
  'article',
  'aside',
  'audio',
  'b',
  'base',
  'basefont',
  'bdi',
  'bdo',
  'bgsound',
  'big',
  'blink',
  'blockquote',
  'body',
  'br'
]

🪪 License