HTML Void Elements List

0.1.0 · active · verified Sat Apr 11

The `html-void-elements` library provides a Pythonic list of all known HTML void tag names, based on the HTML living standard. Void elements are a special category of HTML elements that do not have closing tags and cannot contain any content or child elements (e.g., `<img>`, `<br>`, `<meta>`). This library is currently at version `0.1.0` and offers a static list for use in parsers, validators, or other HTML processing tools. Its release cadence is infrequent, typically updating only when the underlying HTML standard for void elements changes.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import and print the full list of HTML void element tag names provided by the library.

from HtmlVoidElements import html_void_elements

print(html_void_elements)
# Expected output: A list of strings, e.g., ['area', 'base', 'br', 'col', 'embed', ...]

view raw JSON →