Attributes in DOM
getAttribute()
returns the value of a specified attribute on the elementsetAttribute()
Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and valueremoveAttribute()
removes an attribute from the specified elementhasAttribute()