
## create_attribute {#str}

This method creates a new attribute node, and returns it. 
The object created is a node implementing the [`Attr`](/html/python-net/aspose.html.dom/attr) class. 
The DOM does not enforce what sort of attributes can be added to a particular element in this manner.


### Returns 


A [`Attr`](/html/python-net/aspose.html.dom/attr) node.


```python
def create_attribute(self, local_name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| local_name | str | is a string containing the name of the attribute. |



### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`Attr`](/html/python-net/aspose.html.dom/attr)
* class [`SVGDocument`](/html/python-net/aspose.html.dom.svg/svgdocument)
