attribute method

attribute

Sets or updates a style attribute with a specified value.

def attribute(self, name, value):
    ...
ParameterTypeDescription
namestrThe name of the CSS style attribute.
valuestrThe value to be set for the specified CSS style attribute.

See Also