# HtmlElementExtensions

Kind: Class  
Namespace: `TinyComponents`  
Assembly: `TinyComponents.dll`  
Source: https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.html

Provides extension methods for [HtmlElement](https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.md) objects.

```csharp
public static class HtmlElementExtensions
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[HtmlElementExtensions](https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.md)

#### Inherited Members

[object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype), 
[object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), 
[object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring), 
[object.Equals\(object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)), 
[object.Equals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)), 
[object.ReferenceEquals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), 
[object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

## Methods

| Name | Description |
| --- | --- |
| [WithClass<THtmlElement\>\(THtmlElement, params string\[\]\)](https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.WithClass.md#TinyComponents_HtmlElementExtensions_WithClass__1___0_System_String___) | Specifies the HTML element class list of this [HtmlElement](https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.md). |
| [WithId<THtmlElement\>\(THtmlElement, string\)](https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.WithId.md#TinyComponents_HtmlElementExtensions_WithId__1___0_System_String_) | Specifies the HTML element ID of this [HtmlElement](https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.md). |
| [WithName<THtmlElement\>\(THtmlElement, string\)](https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.WithName.md#TinyComponents_HtmlElementExtensions_WithName__1___0_System_String_) | Specifies the HTML element name of this [HtmlElement](https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.md). |
| [WithStyle<THtmlElement\>\(THtmlElement, object\)](https://docs.sisk-framework.org/api/TinyComponents.HtmlElementExtensions.WithStyle.md#TinyComponents_HtmlElementExtensions_WithStyle__1___0_System_Object_) | Adds css styles through the style attribute on this [HtmlElement](https://docs.sisk-framework.org/api/TinyComponents.HtmlElement.md). |
