question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

two radio button elements should be nested in its own label element. but how? thanks

See original GitHub issue

Challenge 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:closed
  • Created 8 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
bugroncommented, Sep 16, 2015

@vvkgdm thanks for posting this issue! This is the description of that test:

Each of your two radio button elements should be nested in its own label element.

This means that you should create two labels for your radio buttons. This is how you should do that.

<label><input type="radio" name="indoor-outdoor">indoor</label>
<label><input type="radio" name="indoor-outdoor">outdoor</label>

If you have such questions/problems, please, post a message in our Gitter chat room first, thanks.


Please review the Guidelines for Contributing, thank you!.


0reactions
w-ak9commented, Mar 4, 2019

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>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found