I don’t understand why this is not correct. I nested my radio buttons in their own label as instructed but the program is recognizing it. What am I doing wrong?
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>
<input id="indoor" type="radio" name="indoor-outdoor">
<label for="indoor">Indoor</label>
</label>
<label>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">Outdoor</label>
</label>
<button type="submit">Submit</button>
</form>
</main>
**Your browser information:**e
1 Like
iagas
April 16, 2020, 6:31pm
2
You have an extra set of tags at the beginning and end of each button.
Remove them so it looks like this:
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor
</label>
1 Like
The input tags should be nested in the existing labels. Right now you have inputs before labels inside other labels.
2 Likes
sorry but none of these are working
1 Like
thanks for trying i apriceate it
1 Like
What is your current code?
1 Like
<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>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<p>Top 3 things cats hate:</p>
<ol>
<li>
<form action="/submit-cat-photo">
<label>
<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>
</label>
<button type="submit">Submit</button>
</form>/'
'
</main>
1 Like
dont know whats happening i am copying and pasting the code and it turns in to that
1 Like
You need to put ``` on the lines before and after your code.
1 Like
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
Note: Backticks are not single quotes.
You just put one (otherwise empty) label around both inputs and both labels. That is not what is asked for. You need to put each input inside its corresponding label element .
You didn’t fix your label.
As @iagas said, you should have
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor
</label>
but you have
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">Outdoor</label>
</label>
`
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>
```<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 type="text" placeholder="cat photo URL" required>
```<button type="submit">Submit</button>
```</form>
``` </main>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">Outdoor</label>
is still not
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor
</label>
Can you see the difference between the two pieces of code?
no luck
sorry thinks for trying
I am also trying but its not happening with me.