# HtmlElement (@salmonui/rich-text)

> The HtmlElement interface of @salmonui/rich-text: An element of a parsed HTML fragment. Tag and attribute names are lowercase.

Canonical: https://salmonui.dev/docs/reference/rich-text/HtmlElement

```ts
import type { HtmlElement } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface HtmlElement {
    type: 'element';
    tag: string;
    attrs: Record<string, string>;
    children: HtmlNode[];
}
```

An element of a parsed HTML fragment. Tag and attribute names are lowercase.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'element';` |  |  |
| `tag` | `tag: string;` |  |  |
| `attrs` | `attrs: Record<string, string>;` |  |  |
| `children` | `children: HtmlNode[];` |  |  |
