---
title: "from_html method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/colortranslator/from_html/"
product: "Aspose.CAD for Python via .NET API References"
---


## from_html {#str}

Takes color from the HTML color.


### Returns 


The color.


```python
def from_html(self, html_color):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| html_color | str | HTML color. |



### See Also
* module [`aspose.cad`](../../)
* class [`ColorTranslator`](/cad/python-net/aspose.cad/colortranslator)
