Tag name of the Element representation of target
.
Element, EventTarget, or CSS selector.
Name of the attribute to set.
Value to set for the attribute.
Element representation of the specified target
.
elements!InvalidElementError
if the specified target
wasn't found.
Sets the attribute
name
of thetarget
element to thevalue
. Thevalue
is coerced to a string.