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

Web Hypertext Application Technology Working Group (WHATWG)

World Wide Web Consortium (W3C)

Home Menu