
## attribute {#str-str}

Sets or updates a style attribute with a specified value.



```python
def attribute(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | str | The name of the CSS style attribute. |
| value | str | The value to be set for the specified CSS style attribute. |



### See Also
* module [`aspose.svg.builder`](../../)
* class [`RuleBuilder`](/svg/python-net/aspose.svg.builder/rulebuilder)
