Sets a new value of a specified attribute.
true if the attribute value was successfully set; otherwise, the method returns false.