Tell us what’s happening:
i dont understand how to do this question pls help
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
.
**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="https://freecatphotoapp.com/submit-cat-photo">
<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><br>
<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
<label for="lazy"><input id="lazy" type="checkbox" name="personality"> Lazy</label>
<label for="energetic"><input id="energetic" type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
ILM
April 24, 2021, 12:10pm
2
what do you not understand? what have you tried?
I dont under stand how to do this
Give each of the radio
and checkbox
inputs the value
attribute. Use the input label text, in lowercase, as the value for the attribute.
Run the TestsReset All Code
Get Help
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
.
ILM
April 24, 2021, 1:47pm
4
you need to add the value
attribute to the input elments, <input value="...">
can u show how i dont understand
ILM
April 24, 2021, 2:01pm
6
this is an input
element, you need to add to it the corrensponding value
attribute
<input id="indoor" type="radio" name="indoor-outdoor" value="...">
am i doing this question right:
One of your checkboxes should have the value
attribute of loving
.
loving
<label for="loving"<>input id="loving" value="loving" type="checkbox" name="personality">loving
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.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
You have a syntax error here
bamsehonung21:
"loving"<>
You can look at the example FCC gave you
<label for="indoor">
<input id="indoor" value="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
The radio buttons need a value
attribute with given text from challenge panel
system
Closed
October 24, 2021, 3:00am
12
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.