How to put input element radio above an existing input with type attribute set to text

Please help me write the code correctly.
This is the question: 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: cat. Remember that input elements are self-closing.
Before the text input, add a radio button with the option Indoor.

This is the code I have written:

<form action="https://freecatphotoapp.com/submit-cat-photo"> 
<input type="radio"> Indoor
         <input text= name="catphotourl" placeholder="catphotourl" required>

This is the hint:
Your new input element should be above the existing input with type attribute set to text. You have them in the wrong order

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

Please consider this
Screenshot from 2022-06-10 11-56-15

1 Like

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