Skip to content

djlint/html-void-elements

Repository files navigation

HTML Void Elements

List of known HTML void tag names.

Python port of npm package html-void-elements.

Pypi Version Downloads

🤔 What is this?

This is a list of HTML void tag names.

⌚ When should I use this?

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

💾 Install

pip install html-void-elements

# or

poetry add html-void-elements

✨ How to Use

from HtmlVoidElements import html_void_elements

print(html_void_elements)

Yields:

[
  'area',
  'base',
  'basefont',
  'bgsound',
  'br',
  'col',
  'command',
  'embed',
  'frame',
  'hr',
  'image',
  'img',
  'input',
  'isindex',
  'keygen',
  'link',
  'menuitem',
  'meta',
  'nextid',
  'param',
  'source',
  'track',
  'wbr'
]

🪪 License