react-native-web-headroom
Version:
React Native Web Headroom
87 lines (62 loc) • 1.72 kB
Markdown
List of known HTML tag-names. Includes ancient (for example,
`nextid` and `basefont`) and modern (for example, `shadow` and
`template`) tag-names from both W3C and WHATWG.
The repo includes a script to crawl W3C and WHATWG to include newly
introduced tag-names.
## Installation
[npm][]:
```bash
npm install html-tag-names
```
## Usage
```javascript
var htmlTagNames = require('html-tag-names');
htmlTagNames.length; //=> 147
console.log(htmlTagNames.slice(0, 20));;
```
Yields:
```js
[ 'a',
'abbr',
'acronym',
'address',
'applet',
'area',
'article',
'aside',
'audio',
'b',
'base',
'basefont',
'bdi',
'bdo',
'bgsound',
'big',
'blink',
'blockquote',
'body',
'br' ]
```
`Array.<string>` — List of lower-case tag-names.
* [`mathml-tag-names`](https://github.com/wooorm/mathml-tag-names)
— List of MathML tags
* [`svg-tag-names`](https://github.com/wooorm/svg-tag-names)
— List of SVG tags
* [`svg-element-attributes`](https://github.com/wooorm/svg-element-attributes)
— Map of SVG elements to allowed attributes
* [`html-element-attributes`](https://github.com/wooorm/html-element-attributes)
— Map of HTML elements to allowed attributes
* [`aria-attributes`](https://github.com/wooorm/aria-attributes)
— List of ARIA attributes
[][license] © [Titus Wormer][author]
<!-- Definition -->
[]: https://img.shields.io/travis/wooorm/html-tag-names.svg
[]: https://travis-ci.org/wooorm/html-tag-names
[]: https://docs.npmjs.com/cli/install
[]: LICENSE
[]: http://wooorm.com