# HtmlElement.ToString

Kind: Method  
Namespace: `TinyComponents`  
Assembly: `TinyComponents.dll`  
Source: https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.ToString.html

## ToString() {#TinyComponents_HtmlElement_ToString}

Renders the HTML element into a string with optional pretty formatting.

```csharp
public override string ToString()
```

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The rendered HTML string.
