HTML attribute: Difference between revisions

Content deleted Content added
top: clarified
Line 126:
 
Standard attributes are also known as global attributes, and can be used in a large number of element classes.<ref name="globalattribute">{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes |title=Global attributes - HTML (HyperText Markup Language) MDN |date=|accessdate=2015-02-12}}</ref>. They include the basic standard attributes: these include accesskey, class, contenteditable, contextmenu, data, dir, hidden, id, lang, style, tabindex, title, translate. There are also some experimental ones. Both xml:lang and xml:base have been deprecated. The multiple aria-* attributes improve accessibility. <ref name="globalattribute"/>
 
Technically all standard attributes must be accepted by all elements, though they will not function with some element classes.<ref name="HTMLReference">{{cite web | url=https://developer.mozilla.org/en-US/docs/Web/HTML/Reference | title=HTML reference - HTML (HyperText Markup Language) MDN | accessdate=13 February 2015}}</ref>
 
{| class="wikitable sortable"