Basic HTML and HTML5 - Create a Set of Radio Buttons

hello, can u helm me?
that is my code. I don’t know what is mistake.
help meeeee pleasee



**Your code so far**
  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>
    <li>cat nip</li>
    <li>laser pointers</li>
  <p>Top 3 things cats hate:</p>
    <li>flea treatment</li>
    <li>other cats</li>
  <form action="">
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
<label for="indoor">
<input  type="radio" name="indoor-outdoor">Indoor
<label for="outdoor"> 
<input type="radio" name="indoor-outdoor">Outdoor

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.1 Safari/605.1.15

Challenge: Basic HTML and HTML5 - Create a Set of Radio Buttons

Link to the challenge:

I think you want to put them inside of the form element.

I put but don’t work :(((
program wrote: Failed:Each of your label elements should have a closing tag.

thought I don’t know where is not closing tag… :((

You’ll need to paste your updated HTML in here using the following method so we can see what you did.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

1 Like

I tried but do not work again :((((

We can’t help you unless we can see your HTML.

hey Hello , there is issue inside your code and check the element inside input element. if there is no element inside input element. it might be space.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.