Hello,
I have a doubt to use the value attribute with Radio buttons and check boxes, to solve the codes and run the tests.
First topic Responsive web design exercise 23
Hello,
I have a doubt to use the value attribute with Radio buttons and check boxes, to solve the codes and run the tests.
First topic Responsive web design exercise 23
Can you post the code you’ve written currently?
Sure, see this one below:
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate:
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
Just for the record, if you copy the code you’ve written and paste it within the quotes that appear when you click the “</>” icon at the top of the post box, it becomes easier to read.
<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 type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
Currently, it’s too difficult to tell exactly what you’ve written, but if you use the same layout as the example in the problem, nest the radio buttons in the form button, and make sure they all have the same name, it should work.
<form>
<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>
</form>
Thanks,
I´ll try to run this code again
Also, just for clarity, that post isn’t your code, but the output of your code.
If you post what you’ve written (or what is in the center module already), it’s much easier to troubleshoot for everyone in the forums.
Feel free to ask again if you’re still having trouble!
Thanks Garrison, for your support
Hello 1t.
For future posts, please conform to the MarkDown syntax used in this forum. Read more about it here: Forum Code Formatting
This helps keep the forum nice and tidy.
Hello
ok, thank you!