html-element-groups
v0.1.7
Published
> Lists of HTML elements. Grouped based on logic from [MDN](https://developer.mozilla.org/en/docs/Web/HTML/Element).
Downloads
16
Readme
html-element-groups
Lists of HTML elements. Grouped based on logic from MDN.
const elements = require('html-element-groups')
console.log(elements.sectioning)
// => ['address', 'article', 'aside', ...
console.log(elements.deprecated)
// => ['acronym', 'applet', 'basefont', ...
console.log(elements.include(['text', 'inline', 'tabular']))
// => ['blockquote', 'dd', 'div', ...
Properties
source
— https://developer.mozilla.org/en/docs/Web/HTML/Elementtimestamp
— Time of current buildsectioning
text
inline
demarcating
tabular
form
interactive
deprecated
names
— Flattened array of elements, omitting deprecatednamesIncludingDeprecated
— Flattened array of elements, including deprecatedinclude
— Include elements by argumentsexclude
— All elements, except by arguments