+ 5

What are the global attributes?

With some Examples please?

2nd Mar 2019, 11:42 AM
Gauhar Rahman Niazi
Gauhar Rahman Niazi  - avatar
4 odpowiedzi
+ 5
West _Side God This one is copied too please link the original source https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
2nd Apr 2019, 4:53 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
Attributes used by all elements are global Attributes. For eg: <div class="d" ></div> Above, class is a global attribute because it is used by all html tags. Non-global attributes : Attributes not used by all tags. For eg: <input type="text" /> Above, type attribute is not used by other elements. So it's not global attribute.
2nd Mar 2019, 11:51 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 4
Thanks from all of you guys ✅✅✅✅
2nd Mar 2019, 12:37 PM
Gauhar Rahman Niazi
Gauhar Rahman Niazi  - avatar
+ 3
Global attributes are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements. Global attributes may be specified on all HTML elements, even those not specified in the standard. That means that any non-standard elements must still permit these attributes, even though using those elements means that the document is no longer HTML5-compliant. For example, HTML5-compliant browsers hide content marked as <foo hidden>...</foo>, even though <foo> is not a valid HTML element.
2nd Mar 2019, 12:24 PM
Troy🌹
Troy🌹 - avatar