# `attribute` statement

The statement `attribute <LABEL>` is used to identify the `<LABEL>` as a type of kind `attribute`.

## [](#_defining_attributes)Defining attributes

The `attribute` keyword can be used to define a type of kind `attribute`.

```typeql
#!test[schema, fail_at=commit]
define attribute name;
```

## [](#_matching_attributes)Matching attributes

The `attribute` keyword can be used to match all types of kind `attribute`.

```typeql
#!test[read]
match attribute $a;
```

[relation](../relation/index.md) [sub](../sub/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/typeql-reference/modules/ROOT/pages/statements/attribute.adoc) Edit this page on GitHub.