> For the complete documentation index, see [llms.txt](https://tag.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tag.angular-package.dev/attribute/attribute.md).

# Attribute {}

The [`Attribute`](/attribute/attribute.md) [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) object is the [immutable](https://developer.mozilla.org/en-US/docs/Glossary/Immutable) attribute of the name equal to the value in a form **name="value"**.

## Instance

### Accessors

|                                                         |                                                                                                                                                                                                                    |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [attribute](/attribute/instance/accessors/attribute.md) | The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor returns the **attribute**, the primitive value of a specified [`Attribute`](/attribute/attribute.md) object. |
| [name](/attribute/instance/accessors/name.md)           | The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor returns the attribute **name** of a specified [`Attribute`](/attribute/attribute.md) object.                 |
| [value](/attribute/instance/accessors/value.md)         | The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor returns the attribute **value** of a specified [`Attribute`](/attribute/attribute.md) object.                |

### Properties

|                                                   |                                                                                                                                                                                                               |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [#name](/attribute/instance/properties/name.md)   | The private property represents the attribute **name** of a generic type variable [`Name`](/attribute/generic-type-variables.md#wrap-opening).                                                                |
| [#value](/attribute/instance/properties/value.md) | The private property represents the attribute **value** of a generic type variable [`Value`](https://tag.angular-package.dev/attribute/pages/iQwmCbLKUWR7oXo4hkkM#attribute-less-than...-value-greater-than). |

### Methods

|                                                       |   |
| ----------------------------------------------------- | - |
| [toArray()](/attribute/instance/methods/toarray.md)   |   |
| [toObject()](/attribute/instance/methods/toobject.md) |   |
| [toString()](/attribute/instance/methods/tostring.md) |   |
| [valueOf()](/attribute/instance/methods/valueof.md)   |   |

## Static

### Methods

|               |   |
| ------------- | - |
| isAttribute() |   |
