# Tags

Tags can be applied to environments and are useful for defining node or resource metadata. For example, you could use tags to define the physical location of nodes, departments or owners of resources, and much more.

## Creating a tag

From the menu expand **Environment-related** then select **Tags**.&#x20;

<figure><img src="/files/oy9gnY0rS30JatddDqS0" alt=""><figcaption></figcaption></figure>

Enter a name for the tag then click **Create tag**. The tag appears in the list and can be assigned to environments.

## Tagging an environment

From the menu expand **Environment-related**, select **Environments** then select the environment you want to tag.

<figure><img src="/files/wTrwkRXETV24ddstpgPq" alt=""><figcaption></figcaption></figure>

From the **Tags** lookup select the tag then click **Update environment**.

{% hint style="info" %}
Environment tags will be visible on the Portainer home page. You can also search for environments based on their tags.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.portainer.io/2.33-lts/admin/environments/tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
