Value attribute isn't being recognized

Tell us what’s happening:

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="">
  <label for="indoor"><input id="indoor" value="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
  <label for="outdoor"><input id="outdoor" value="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>

  <label for="loving"><input id="loving" value="loving" type="checkbox" name="personality"> Loving</label>
  <label for="lazy"><input id="lazy" value="lazy" type="checkbox" name="personality"> Lazy</label>
  <label for="energetic"><input id="energetic" value="energetic" type="checkbox" name="personality"> Energetic</label><br>

  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>

Hi i've been looking at the solution aswell but im just a potato and im struggling to find the solution.

can you share me the link of this challenge?

Learn Basic HTML and HTML5: Use the value attribute with Radio Buttons and Checkboxes |

@IkBenNuman Which kind of error is occurring when you are running your test?
I have run your test it is completely fine.

When I submit the code nothing happens and it says that I need to add the value attribute

okay @IkBenNuman then reset all code and and perform the given task again.Maybe u will pass the test.

@IkBenNuman Your code is working fine it looks like you should follow these steps:

  1. Clear your browser’s cookies and cache data
  2. Update your browser

Wont that reset the test score of all the other tests taken?

it takes the current challenge to the starting state

1 Like

This really helped. Thanks

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