# Nome discernível

![](/files/v6hpivyoBK0Ptst8zyCs) ![](/files/YDub6x776Pyuo7yIoWZl)

### Problema

Links e botões obtêm seus nomes acessíveis a partir do seu conteúdo de texto. Várias vezes usamos recursos visuais em nossos sites que estão presentes dentro de links, como ícones, que não provem informações textuais sobre o que representam. Isso dificulta a acessibilidade ao seu site, uma vez que leitores de tela não o conteúdo que aquele elemento representa.

### Recomendações

Em caso no qual o conteúdo do link ou botão não conseguirá prover um nome discernível a ele, use o atributo aria-label para prover uma informação sobre o que aquele link representa, ajudando os leitores de tela e aumentando a acessibilidade do seu site.

{% code title="Exemplo link antes" %}

```html
<a href="link">
    <img src="link-para-imagem-carrinho.png" />
</a>
```

{% endcode %}

{% code title="Exemplo link depois" %}

```html
<a href="link" aria-label="Carrinho de compras">
    <img src="link-para-imagem-carrinho.png" />
</a>
```

{% endcode %}

{% code title="Exemplo botão antes" %}

```markup
<button></button>
```

{% endcode %}

{% code title="Exemplo botão depois" %}

```markup
<button class="cart-icon" aria-label="Comprar"></button>
```

{% endcode %}


---

# 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://partners.tray.com.br/themes/construindo-seu-template/core-web-vitals/acessibilidade/nome-discernivel.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.
