+ 5
What are the global attributes?
With some Examples please?
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
+ 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.
+ 4
Thanks from all of you guys ✅✅✅✅
+ 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.