HTML Step 43 one question?

I am stuck on Step 43. Very lost. Please help me make sense of this.

Step 43

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

Here is an example of a radio button with the option of cat: <input type="radio"> cat. Remember that input elements are self-closing.

Before the text input, add a radio button with the option Indoor.

My code:

              <input type="radio"name=“Indoor”>
              <input type="radio""text">

Where is the text for the input? I see two inputs, one with slightly invalid syntax, but no text

 Indoor<input type="text"> indoor

I tried this by removing the double… and it worked but I still don’t really understand what that did

That’s a input of type text, isn’t this about radio buttons? You need an input of type radio

Hola, si no entiendes porque sera que ponemos el texto después del input

<input type="radio"> indoor

supongo que es por estetica, es mi opinión.
Un dato más: El elemento input , teniendo el valor "radio " en su atributo type , representa una opción que pertenece a un grupo en el que no más de una opción puede ser seleccionada al mismo tiempo.
Osea input seria el botón y el valor radio una opción.


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