カスタムデータ属性とは、html要素に独自名の属性を適用出来る属性です。主に、CSSやJavaScriptなどからhtml要素にアクセスするために用います。カスタムデータ属性は、data-を接頭辞(プレフィックス)としてつける必要があります。
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme