Element.set_attr# Element.set_attr(name, value)[source]# Sets the value of an HTML element attribute. Parameters: name (str) – The name of the attribute. value – The new value of the attribute.