# AttributeBag

> Provides the concrete entry point for HTML attribute bag operations.

[API reference](/docs/api/index.md) › [HTML Helper](/docs/extensions/html-helper/reference/index.md) › AttributeBag

| final class | `UIAwesome\Html\Helper\AttributeBag` |
| --- | --- |
| Extends | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| Source | [`src/AttributeBag.php`](https://github.com/ui-awesome/html-helper/blob/main/src/AttributeBag.php#L12) |

Provides the concrete entry point for HTML attribute bag operations.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| <span id="method-get"></span>[`get()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-get) static | Returns an attribute value by key. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| <span id="method-normalizeKey"></span>[`normalizeKey()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-normalizeKey) static | Normalizes an attribute key ensuring it has a specific prefix. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| <span id="method-remove"></span>[`remove()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-remove) static | Removes an attribute from the bag. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| <span id="method-replace"></span>[`replace()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-replace) static | Replaces all attributes in the bag. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| <span id="method-set"></span>[`set()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-set) static | Sets a plain attribute key/value pair. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |
| <span id="method-setMany"></span>[`setMany()`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md#method-setMany) static | Sets multiple plain attributes. | [`UIAwesome\Html\Helper\Base\BaseAttributeBag`](/docs/extensions/html-helper/reference/base/baseattributebag/index.md) |