Step 44 How to add a radio button?

A etapa 44 pede para adicionar um botão de rádio e o exemplo dado é este: <input_type=“radio”> cat*. E também é informado: antes de inserir o texto, adicione um botão de rádio com a opção definida para: Indoor (não entendi essa parte)

tentei alguns códigos como:
*<input _typer=“radio” cat.
*<input_typer=“radio”>cat
*<input_indoor typer=“radio”>
*<input_typer=“radio”>

Eu tentei diferentes formas de código, mas a maior parte do erro que recebi foi este: Você deveria ter adicionado apenas um elemento de entrada ao seu botão de opção. Remova quaisquer extras.
o que seria esses “extras do código”? e/ou qual dos dois códigos que usei está mais correto?

meu código:

type or paste code here
```<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        </figure>
      </section>
      <section>
        <h2>Cat Form</h2>       
          <form action="https://freecatphotoapp.com/submit-cat-photo">                   
        <input indoor type="radio">       
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
         <input type="text"<button type="submit">Submit</button>>
1 Like

First, restart the step to get the original HTML back. You have made changes to other parts of the HTML that you should not have made. You do not want to make changes to any of the existing HTML. The only thing you want to do is add a new radio button and its associated text. The instructions show you exactly how to add a radio button. There is an example radio button input in the instructions. If the radio button input you add does not look exactly like the radio button input in the instructions then you aren’t doing it correctly.

The only difference between the instructions and your new radio button is that you will use Indoor instead of cat for the radio button text.

1 Like

Thanks for the help, the problem was in the HTML that had actually made some changes to the older code, because I had already tested the right code but it gave an error due to changes in the previous codes, again thank you very much for the help, I was already crazy without know what was going wrong.

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