Create radio buttons

Create radio buttons
0.0 0

#1

I tried everything but my code it’s wrong can you find when it’s wrong.

Your code so far

<link href="https://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" alt="A cute orange cat lying on its back. " 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">
  <label>
    <input type="radio" name"indoor-outdoor">
    Outdoor
  </label>
  <label>
    <input type="radio" name"indoor-outdoor">
  Indoor
  </label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  </form>

Your browser information:

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

Link to the challenge:


#2

Hello Klaudia. I came across the same problem. i know wat you going through! aniway keep it up!
try name= instead of “radio” name “indoor-outdoor” try “radio” name=“indoor-outdoor”>


#3

I try it but again tell it’s wrong can you tell me exactly how it is the right ?


#4

Instead of us just telling you the answer, please post your current code into a reply, so we can see what you are currently trying. Also, tell us which tests are you failing?

To enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#5
.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;
}

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Indoor Outdoor Submit This is my code.What i do wrong(my englidh is not very well)

#6

You did not add three backticks on the line before and line after the code you pasted, so that is why it is not displaying properly. Read the instructions I gave you on how to use backticks to display code on the forum.


#7

What i put and where


#8

I tried but it wrong


#9

I do not see where you tried to the back ticks. You are supposed to put 3 backticks on the line before the code you pasted in and the line after the code you pasted in. Can you tell me where I can see the backticks, because I do not see them?


#10

I do it last night thank you for helping you are amazing.