CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
readme.md165 linesDownload Raw Back to html-void-elements
1# html-void-elements2 3[![Build][build-badge]][build]4[![Coverage][coverage-badge]][coverage]5[![Downloads][downloads-badge]][downloads]6[![Size][size-badge]][size]7 8List of HTML void tag names.9 10## Contents11 12*   [What is this?](#what-is-this)13*   [When should I use this?](#when-should-i-use-this)14*   [Install](#install)15*   [Use](#use)16*   [API](#api)17    *   [`htmlVoidElements`](#htmlvoidelements)18*   [Types](#types)19*   [Compatibility](#compatibility)20*   [Security](#security)21*   [Related](#related)22*   [Contribute](#contribute)23*   [License](#license)24 25## What is this?26 27This is a list of all void tag names according to HTML.28 29> 👉 **Note**: includes ancient (such as `basefont` and `bgsound`) tag names30> too.31 32## When should I use this?33 34You can use this when you’re writing HTML parsers, minifiers, or compilers.35 36## Install37 38This package is [ESM only][esm].39In Node.js (version 14.14+, 16.0+), install with [npm][]:40 41```sh42npm install html-void-elements43```44 45In Deno with [`esm.sh`][esmsh]:46 47```js48import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2'49```50 51In browsers with [`esm.sh`][esmsh]:52 53```html54<script type="module">55  import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2?bundle'56</script>57```58 59## Use60 61```js62import {htmlVoidElements} from 'html-void-elements'63 64console.log(htmlVoidElements)65```66 67Yields:68 69```js70[71  'area',72  'base',73  'basefont',74  'bgsound',75  'br',76  'col',77  'command',78  'embed',79  'frame',80  'hr',81  'image',82  'img',83  'input',84  'keygen',85  'link',86  'meta',87  'param',88  'source',89  'track',90  'wbr'91]92```93 94## API95 96This package exports the identifier `htmlVoidElements`.97There is no default export.98 99### `htmlVoidElements`100 101List of HTML void tag names (`Array<string>`).102 103## Types104 105This package is fully typed with [TypeScript][].106It exports no additional types.107 108## Compatibility109 110This package is at least compatible with all maintained versions of Node.js.111As of now, that is Node.js 14.14+ and 16.0+.112It also works in Deno and modern browsers.113 114## Security115 116This package is safe.117 118## Related119 120*   [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names)121    — list of HTML tag names122*   [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes)123    — map of HTML elements to attributes124 125## Contribute126 127Yes please!128See [How to Contribute to Open Source][contribute].129 130## License131 132[MIT][license] © [Titus Wormer][author]133 134<!-- Definition -->135 136[build-badge]: https://github.com/wooorm/html-void-elements/workflows/main/badge.svg137 138[build]: https://github.com/wooorm/html-void-elements/actions139 140[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-void-elements.svg141 142[coverage]: https://codecov.io/github/wooorm/html-void-elements143 144[downloads-badge]: https://img.shields.io/npm/dm/html-void-elements.svg145 146[downloads]: https://www.npmjs.com/package/html-void-elements147 148[size-badge]: https://img.shields.io/bundlephobia/minzip/html-void-elements.svg149 150[size]: https://bundlephobia.com/result?p=html-void-elements151 152[npm]: https://docs.npmjs.com/cli/install153 154[esmsh]: https://esm.sh155 156[license]: license157 158[author]: https://wooorm.com159 160[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c161 162[typescript]: https://www.typescriptlang.org163 164[contribute]: https://opensource.guide/how-to-contribute/165 
basant307/AI_Governance_Project · CoolFace