You can use radio buttons for questions where you want only one answer out of multiple options

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
        <input type="radio"><label>Indoor</label>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Step 43

Link to the challenge:

you only have one input radio button instead of multiple.
if you wanted multiple where you can only choose one answer you would have both radio buttons with the same name attribute.

But i’m not sure if this answers your question as im unsure

wwwwwwwwwwwhat is < label > ??

I have done as instructed, but I get feedback my code did not pass. I am confused :confused:

From the task, I understand to insert the indoor option which I have done. kindly help me to better understand.

I have found the solution. I just noticed I confused myself by introducing a label element.

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