Free code camp: I don't understand Improve Form Field Accessibility with the label Element

Tell us what’s happening:

```<body>
  <header>
    <h1>Deep Thoughts with Master Camper Cat</h1>
  </header>
  <section>
    <form>
      <p>Sign up to receive Camper Cat's blog posts by email here!</p>

    <form>
      <label for="Email:">Email:</label>
      <input type="text" id="Email:" name:"email:">
    </form>

      <input type="submit" name="submit" value="Submit">
    </form>
  </section>
  <article>
    <h2>The Garfield Files: Lasagna as Training Fuel?</h2>
    <p>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...</p>
  </article>
  <img src="samuraiSwords.jpeg" alt="">
  <article>
    <h2>Defeating your Foe: the Red Dot is Ours!</h2>
    <p>Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightning speed. But chin up, fellow fighters, our time for victory may soon be near...</p>
  </article>
  <img src="samuraiSwords.jpeg" alt="">
  <article>
    <h2>Is Chuck Norris a Cat Person?</h2>
    <p>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?...</p>
  </article>
  <footer>&copy; 2018 Camper Cat</footer>
</body>
      **Your code so far**
      
```html

<body>
<header>
  <h1>Deep Thoughts with Master Camper Cat</h1>
</header>
<section>
  <form>
    <p>Sign up to receive Camper Cat's blog posts by email here!</p>

  <form>
    <label for="Email:">Email:</label>
    <input type="text" id="Email:" name:"email:">
  </form>

    <input type="submit" name="submit" value="Submit">
  </form>
</section>
<article>
  <h2>The Garfield Files: Lasagna as Training Fuel?</h2>
  <p>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...</p>
</article>
<img src="samuraiSwords.jpeg" alt="">
<article>
  <h2>Defeating your Foe: the Red Dot is Ours!</h2>
  <p>Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightning speed. But chin up, fellow fighters, our time for victory may soon be near...</p>
</article>
<img src="samuraiSwords.jpeg" alt="">
<article>
  <h2>Is Chuck Norris a Cat Person?</h2>
  <p>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?...</p>
</article>
<footer>&copy; 2018 Camper Cat</footer>
</body>

But when I try to submit it shows this:
correct- Your code should have a for attribute on the label tag that is not empty.

wrong- Your for attribute value should match the id value on the email input .

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Improve Form Field Accessibility with the label Element

Link to the challenge:

All you have been asked to do is to add a for attribute on label and ie.

<label for="">

The text in the for attribute should match the id of the email input. It is case sensitive. You may have to reset the challenge.

You have an error on your input field where it says name:“email:”. Replace the full colon after name with an equal sign(=) like this

name="email:"

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.