--- id: 587d778a367417b2b2512aa6 title: Improve Form Field Accessibility with the label Element challengeType: 0 videoUrl: '' localeTitle: Melhore a acessibilidade do campo de formulário com o elemento label --- ## Description
Melhorar a acessibilidade com marcação HTML semântica aplica-se ao uso de nomes de tag apropriados e de atributos. Os próximos desafios abrangem alguns cenários importantes usando atributos em formulários. A label rotula o texto para um item de controle de formulário específico, geralmente o nome ou rótulo para uma escolha. Isso vincula o significado ao item e torna a forma mais legível. O atributo for em uma tag label associa explicitamente esse label ao controle de formulário e é usado pelos leitores de tela. Você aprendeu sobre os botões de opção e seus rótulos em uma lição na seção HTML básico. Nessa lição, envolvemos o elemento de entrada do botão de opção dentro de um elemento de label junto com o texto da etiqueta para tornar o texto clicável. Outra maneira de conseguir isso é usando o atributo for conforme explicado nesta lição. O valor do atributo for deve ser o mesmo que o valor do atributo id do controle de formulário. Aqui está um exemplo:
<form>
<label for = "name"> Nome: </ label>
<input type = "text" id = "nome" name = "nome">
</ form>
## Instructions
O Camper Cat espera muito interesse em seus posts inteligentes e quer incluir um formulário de inscrição por e-mail. Adicione um atributo for no label e-mail que corresponda ao id em seu campo de input .
## Tests
```yml tests: - text: Seu código deve ter um atributo for na label que não está vazia. testString: 'assert($("label").attr("for"), "Your code should have a for attribute on the label tag that is not empty.");' - text: Seu for atributo valor deve corresponder ao id valor no e-mail input . testString: 'assert($("label").attr("for") == "email", "Your for attribute value should match the id value on the email input.");' ```
## Challenge Seed
```html

Deep Thoughts with Master Camper Cat

Sign up to receive Camper Cat's blog posts by email here!

The Garfield Files: Lasagna as Training Fuel?

The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...

Defeating your Foe: the Red Dot is Ours!

Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightening speed. But chin up, fellow fighters, our time for victory may soon be near...

Is Chuck Norris a Cat Person?

Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...

```
## Solution
```js // solution required ```