html tags
v4.0.0
Lista de etiquetas HTML estándar
Es solo un par de archivos JSON que se pueden usar en cualquier entorno.
Deja intencionalmente etiquetas obsoletas.
npm install html-tags
import htmlTags from 'html-tags' ;
console . log ( htmlTags ) ;
//=> ['a', 'abbr', 'acronym', …]
Y etiquetas nulo (autodenominadas):
import { voidHtmlTags } from 'html-tags' ;
console . log ( voidHtmlTags ) ;
//=> ['area', 'base', 'br', …]
Asegúrese de actualizar tipos en index.d.ts
al cambiar los elementos HTML.