Coder14
#1
It is saying," Each of your label
elements should have a closing tag."
<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">
<label>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>
<label for="Outdoor">
<input id="Outdoor" type="radio" name="indoor-outdoor">Outdoor </label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63
.
Challenge: Create a Set of Radio Buttons
Link to the challenge:
Hello! Welcome to the community
!
You have an extra label
here:
<form action="/submit-cat-photo">
<label><!-- This one -->
<label for="indoor">
Coder14
#3
Oh, Thank you. I am new to coding
1 Like
Keep it up, you’re doing well! We all make these mistakes
(even after you have more experience
)
Coder14
#5
Thank you for helping me. I didn’t know people on here were this nice , until I realized that we all are a community. A coding/hacking community!
1 Like
Coder14
#6
Tell us what’s happening:
i cant find the problem… Your radio buttons should be given the name
attribute of indoor-outdoor
.
Your code so far
<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">
<label>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>
<label for="Outdoor">
<input id="Outdoor" type="radio" name="indoor-outdoor">Outdoor </label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63
.
Challenge: Create a Set of Radio Buttons
Link to the challenge:
You have an orphan extra opening label
element:
/* ... */
<form action="/submit-cat-photo">
<label>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>
/* ... */
It might help if you get in the habit of formatting your code as you work - it makes things like this easier to spot.
Coder14
#8
Tell us what’s happening:
this is happening… One of your radio buttons should have the value
attribute of indoor
.
One of your radio buttons should have the value
attribute of outdoor
.
One of your checkboxes should have the value
attribute of loving
.
One of your checkboxes should have the value
attribute of lazy
.
One of your checkboxes should have the value
attribute of energetic
. Whoever helps me will be such a big help. i am new.
Your code so far
<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">
<label>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>
<label for="Outdoor">
<input id="Outdoor" type="radio" name="indoor-outdoor">Outdoor </label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63
.
Challenge: Create a Set of Radio Buttons
Link to the challenge:
Coder_A
#9
Seems fine to me.
Just that there is one unnecessary label tag.
Coder14
#10
oh… Well then thank you.
ilenia
#11
I don’t see any value attribute in your code
can you point it out for me?
also, there should be 2 radio buttons and 3 checkboxes…