
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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 5,352,663 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.