1. void-elements
Array of "void elements" defined by the HTML specification.
void-elements
Package: void-elements
Created by: pugjs
Last modified: Tue, 28 Jun 2022 18:14:47 GMT
Version: 3.1.0
License: MIT
Downloads: 30,580,317
Repository: https://github.com/pugjs/void-elements

Install

npm install void-elements
yarn add void-elements

void-elements

Object of "void elements" defined by the HTML specification

Exports an Object of "void element" node names as defined by the HTML spec.

The list is programatically generated from the latest W3C HTML draft.

Build Status
Developing Dependency Status
NPM version

Usage

 var voidElements = require('void-elements');

assert(!voidElements['span'], '<span> is not a void element');
assert(voidElements['img'], '<img> is a void element');

License

MIT

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code