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
nameof thetargetelement to thevalue. Thevalueis coerced to a string.