data

The data HTML attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no ASCII upper alphas.

Syntax

data-*="value"

Examples

accesskey

autocapitalize

class

contenteditable

dir

draggable

hidden

id

inputmode

is

lang

spellcheck

style

tabindex

title

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu