html tags
v4.0.0
標準のHTMLタグのリスト
これは、あらゆる環境で使用できるJSONファイルのほんの一部です。
それは意図的に時代遅れのタグを除外します。
npm install html-tags
import htmlTags from 'html-tags' ;
console . log ( htmlTags ) ;
//=> ['a', 'abbr', 'acronym', …]
およびvoid(自己閉鎖)タグ:
import { voidHtmlTags } from 'html-tags' ;
console . log ( voidHtmlTags ) ;
//=> ['area', 'base', 'br', …]
HTML要素を変更するときは、 index.d.ts
のタイプを必ず更新してください。