O'noel
O'noel

Reputation: 87

strange html attribute that i can not understand

I have been learning web programming (part time) for a about a year right now. Please could any one tell me what is the meaning of:

<html class="ws" data-19ax5a9jf="dingo">

and any more information about it and why used? I found this in an html element:. I have surfed the net, but found no clue. Many Thanks

Upvotes: 0

Views: 301

Answers (1)

Mark Schultheiss
Mark Schultheiss

Reputation: 34168

From the specification: "A custom data 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 characters in the range U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z)."

Reference: https://www.w3.org/TR/2010/WD-html5-20101019/elements.html#embedding-custom-non-visible-data-with-the-data-attributes

Upvotes: 2

Related Questions