Tell us what’s happening:
Help me with the step ive been on it for so long
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<section>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
</section>
<section>
<h2>Cat Lists</h2>
<h3>Things cats love:</h3>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<figure>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
<figcaption>Cats <em>love</em> lasagna.</figcaption>
</figure>
<h3>Top 3 things cats hate:</h3>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<figure>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
<figcaption>Cats <strong>hate</strong> other cats.</figcaption>
</figure>
</section>
<section>
<h2>Cat Form</h2>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<fieldset>
<legend>Is your cat an indoor or outdoor cat?</legend>
<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>
</fieldset>
<fieldset>
<legend>What's your cat's personality?</legend>
<input id="loving" type="checkbox" name="personality"> <label for="loving">Loving</label>
<input id="lazy" type="checkbox" name="personality"> <label for="lazy">Lazy</label>
<input id="energetic" type="checkbox" name="personality"> <label for="energetic"> Energetic</label>
</fieldset>
<input type="text" name="catphotourl" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</section>
</main>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53
Challenge: Step 59
Link to the challenge:
Each of the checkboxes should have a value
attribute assigned to them with the value
being the same of the id
.
For example, it would start as:
<input id="example" type="checkbox" name="name"><label for="example"> Example</label>
And it would end as:
<input id="example" type="checkbox" name="name" value="example"><label for="example"> Example</label>
1 Like
I have done that , but still getting
Sorry, your code does not pass. Don’t give up. what could i have done wrong
<legend>Is your cat an indoor or outdoor cat?</legend>
<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>
</fieldset>
<fieldset>
<legend>What's your cat's personality?</legend>
<input id="loving" type="checkbox" name="personality" value="loving"> <label for="loving">Loving</label>
<input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
<input id="energetic" type="checkbox" name="personality"> <label for="energetic" value="energetic"> Energetic</label>
</fieldset>
The first two are coded correctly. However, if you look at the third you will notice you placed it within the label
element and not in the correct input
element.
thank you very much , done that
You are welcome. Be sure to reach out in the future if you need assistance.
<legend>What's your cat's personality?</legend>
<input id="loving" type="checkbox" name="personality" value="loving" checked > <label for="loving">Loving</label>
<input id="lazy" type="checkbox" name="personality" value="lazy" checked > <label for="lazy">Lazy</label>
<input id="energetic" type="checkbox" name="personality" value="energetic" checked > <label for="energetic"> Energetic</label>
</fieldset>
help me with the step 60
1 Like
It said i should just add check to the input
So in your code you have made all the checkboxes checked. This is incorrect. You need to only make the FIRST radio button and FIRST checkbox checked.
1 Like
<legend>What's your cat's personality?</legend>
<input id="loving" type="checkbox" name="personality" value="loving" checked> <label for="loving">Loving</label>
<input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
<input id="energetic" type="checkbox" name="personality" value="energetic"> <label for="energetic"> Energetic</label>
</fieldset>
which one is the radio button?
1 Like
Among those, none. It can be seen on your view screen as a small circle with some text next to it.
It will also have the code of:
<input type="radio">
got it, thank you for the support
No Copyright -
how am i wrong here ?
Step 63? Think back on how you solved step 12.
Looks right without seeing the code.
you uploaded the same thing twice bro
system
Closed
February 3, 2023, 1:42am
20
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.