> For the complete documentation index, see [llms.txt](https://docs.pylenium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pylenium.io/element-commands/element-data/tag_name.md).

# tag\_name

## Syntax

```python
Element.tag_name() -> str
```

## Usage

{% code title="correct usage" %}

```python
assert py.get(".btn").tag_name() == "button"
```

{% endcode %}

{% code title="incorrect usage" %}

```python
# Errors, 'tag_name' is not a property
py.get("a").tag_name
```

{% endcode %}

## Arguments

* None

## Yields

* <mark style="color:orange;">**str**</mark> - The tag name of the current Element
