Tell us what’s happening:
everything looks ok to me but does not seem that way coz i cant get past this challenge.
what am i doing wrong please help
<h2>CatPhotoApp</h2>
<main>
<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>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input id="indoor" type= "radio" name="indoor-outdoor">
<label for="indoor">indoor</label>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">outdoor</label>
<input tpye="text" placeholder="catphoto URL" required>
<button type="submit">submit</button>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
.
Challenge: Create a Set of Radio Buttons
Link to the challenge:
Is the code complete? Because you need to close the <main>
and the <form>
Something like that:
<h2>CatPhotoApp</h2>
<main>
<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>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input id="indoor" type= "radio" name="indoor-outdoor">
<label for="indoor">indoor</label>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">outdoor</label>
<input tpye="text" placeholder="catphoto URL" required>
<button type="submit">submit</button>
</form>
</main>
Roma
3
I’ve moved your post to a more appropriate forum
Roma
4
You’re not nesting properly. The lesson gives an example of how to nest;
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
1 Like
i closed main amd form but still i can’t get through the challenge
Roma
6
Have you changed your code to properly nest as shown in my previous post?
I tried to nest just the way you told me to but it did not work.
CatPhotoApp
Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
Indoor
Outdoor
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
you need to nest the input with in the labels as shown in the image and i have also made changes to the above code now it works fine,
thank you for your help i appreciate it.