two radio button elements should be nested in its own label element. but how? thanks
See original GitHub issueChallenge Waypoint: Create a Set of Radio Buttons has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></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>
<label>
<input type="radio" name="indoor-outdoor" >indoor
<input type="radio" name="indoor-outdoor" >outdoor
</label>
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
two radio button elements should be nested in its own label ...
Each of your two radio button elements should be nested in its own label element. This means that you should create two labels...
Read more >Radio button elements should be nested in its own label ...
The challenge asks you to create an input with a type of “radio” that is nested inside its own label. You successfully created...
Read more >22. Create a Set of Radio Buttons - fcc-offline
Each of your radio buttons can be nested within its own label element. By wrapping an input element inside of a label element...
Read more >Solve problem "Create a Set of Radio Buttons" online
Each of your two radio button elements should be nested in its own label element. Make sure each of your label elements has...
Read more >FreeCodeCamp: Basic HTML and HTML5 | by Eleftheria Batsou
This article will walk you through freecodecamp.org “Basic HTML and HTML5” ... Each of your radio buttons can be nested within its own...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vvkgdm thanks for posting this issue! This is the description of that test:
This means that you should create two labels for your radio buttons. This is how you should do that.
If you have such questions/problems, please, post a message in our Gitter chat room first, thanks.
Put both the inputs in separate label tag!
<label> <input type="radio" name="indoor-outdoor">indoor </label><br> </label>
<label> <input type="radio" name="indoor-outdoor">outdoor </label><br> </label>