Top "Custom-attribute" questions

According to HTML 5.1 CR, `an attribute value is a string` and `attribute values on HTML elements may be any string value`. The term html-`custom-attribute` is used to distinguish "any-string"-attributes from explicitly listed Global attributes in the HTML standard.

Can I add a custom attribute to an HTML tag?

Can I add a custom attribute to an HTML tag like the following? <tag myAttri="myVal" />

html custom-attribute
Custom attributes - Yea or nay?

Recently I have been reading more and more about people using custom attributes in their HTML tags, mainly for the …

javascript html xhtml custom-attribute
custom attribute works only with element.getAttribute("attribute") but not "element.attribute"

I have just noticed, that if I give a custom attribute to an html element, for example: <input type="…

javascript getattribute custom-attribute
Using custom type attribute in <script> tags such as jQuery's text/x-jquery-tmpl

I noticed that jquery's beta template plugin is using, the type attribute "text/x-jquery-tmpl" e.g <script type="text/…

jquery-templates custom-attribute