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="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<p>Things cats love:</p>
<p>Top 3 things cats hate:</p>
<label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor">indoor</label>
<label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor">outdoor</label><br>
<label><input type="checkbox" name="personality" value="loving">loving</label>
<label><input type="checkbox" name="personality" value="lazy">lazy</label>
<label><input type="checkbox" name="personality" value="energetic">energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75.
Challenge: Use the value attribute with Radio Buttons and Checkboxes
Link to the challenge:
The lesson asked you to use the input label text, in lowercase, as the value for the attribute.
It did not ask you to also change the label text.
Hope that helps.
try adding the value in lower case just after the id (value="").
This is the final output that you should be having.
<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>
Hi @dakhliakram !
Welcome to the forum!
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with
[/spoiler] tags on the line above and below your solution code.
Hi Jessica, I’m so sorry I did that. I didn’t realise I had. I’m struggling a bit with this problem. Determined to get it right though:)
I believe you need to remove the period after your anchor element and before your closing paragraph .
My message wasn’t directed at you.
It was for @dakhliakram.
If you’re still struggling please reread my comment. If there’s something you don’t understand please come back and ask us.
From my perspective, each buttons should have correspond id with values. I think you should reread the code and see if your buttons have both id and values in there. I understand the challenge only need the values to be passed, but in real life, I think having id is efficient. Hope that would help.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.