Attributes
Get, set, and remove attributes on DOM elements.
-
.getAttribute()
get the specified attribute value of an element
-
.hasAttribute()
has the specified attribute value of an element
-
.removeAttribute()
removes an attribute
-
.setAttribute()
set an attribute