
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
html-void-elements
Advanced tools
List of HTML void tag names.
This is a list of all void tag names according to HTML.
👉 Note: includes ancient (such as
basefont
andbgsound
) tag names too.
You can use this when you’re writing HTML parsers, minifiers, or compilers.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install html-void-elements
In Deno with esm.sh
:
import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2'
In browsers with esm.sh
:
<script type="module">
import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2?bundle'
</script>
import {htmlVoidElements} from 'html-void-elements'
console.log(htmlVoidElements)
Yields:
[
'area',
'base',
'basefont',
'bgsound',
'br',
'col',
'command',
'embed',
'frame',
'hr',
'image',
'img',
'input',
'keygen',
'link',
'meta',
'param',
'source',
'track',
'wbr'
]
This package exports the identifier htmlVoidElements
.
There is no default export.
htmlVoidElements
List of HTML void tag names (Array<string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/html-tag-names
— list of HTML tag nameswooorm/html-element-attributes
— map of HTML elements to attributesYes please! See How to Contribute to Open Source.
FAQs
List of HTML void tag names
The npm package html-void-elements receives a total of 4,251,237 weekly downloads. As such, html-void-elements popularity was classified as popular.
We found that html-void-elements demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.