Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
void-elements
Array of "void elements" defined by the HTML specification.
html-tags
List of standard HTML tags
self-closing-tags
HTML void elements are not the only self-closing tags. This includes common SVG self-closing elements as well.
@types/html-void-elements
Stub TypeScript definitions entry for html-void-elements, which provides its own types definitions
npm install html-void-elements
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
28 Stars
66 Commits
1 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Sep 23, 2024
Latest Version
3.0.0
Package Id
html-void-elements@3.0.0
Unpacked Size
6.74 kB
Size
2.88 kB
File Count
5
NPM Version
9.6.4
Node Version
20.0.0
Published on
May 19, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
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:
1npm install html-void-elements
In Deno with esm.sh
:
1import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2?bundle' 3</script>
1import {htmlVoidElements} from 'html-void-elements' 2 3console.log(htmlVoidElements)
Yields:
1[ 2 'area', 3 'base', 4 'basefont', 5 'bgsound', 6 'br', 7 'col', 8 'command', 9 'embed', 10 'frame', 11 'hr', 12 'image', 13 'img', 14 'input', 15 'keygen', 16 'link', 17 'meta', 18 'param', 19 'source', 20 'track', 21 'wbr' 22]
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More