> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Attributes (beta)

> Get, set, and remove attributes on elements, with support for bindings and index-based access.

These methods let you read and write attributes on elements using array-based access and binding support.
Both attribute names and values can be plain strings or `BindingValue` references bound to variables or component props.
These methods can write both standard HTML attributes and [custom attributes](https://help.webflow.com/hc/en-us/articles/33961389460115).

To use the methods below, choose an element with a `CustomAttributes` property of `true`. Using these methods with elements that don't have this property will return an error.

To use the methods below, choose an element with a `attributes` property of `true`
Using these methods with elements that don't have this property returns an error.

> **Beta**
>
> These methods are in public beta and may change with future releases.

## Methods

#### [Get Attributes](/designer/reference/attributes/getAttributes)

Get all attributes as an array of name/value pairs, including binding references.

#### [Get Resolved Attributes](/designer/reference/attributes/getResolvedAttributes)

Get all attributes with bindings resolved to their current values.

#### [Set Attributes](/designer/reference/attributes/setAttributes)

Replace all attributes on an element with a provided array of attribute names and values.

#### [Set Attribute](/designer/reference/attributes/setAttribute)

Set a single attribute by name or index.

#### [Get Attribute Value](/designer/reference/attributes/getAttributeValue)

Get the value of a single attribute by name or index.

#### [Get Resolved Attribute Value](/designer/reference/attributes/getResolvedAttributeValue)

Get the resolved value of a single attribute by name.

#### [Remove Attribute](/designer/reference/attributes/removeAttribute)

Remove a single attribute by name or index.