Can someone tell me what's wrong with my code: html step 43

Here’s the link to my code :

[https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-43]
here is the code itself:

<input type="text" name="catphotourl" placeholder="cat photo URL" required><input type="radio"> Indoor

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 (’).

The instructions for step 43 say, “Before the text input, add a radio button with the option Indoor.”

Try swapping the two input tags in your code.

i’m sorry i didn’t quite understand what you mean’t could you show me an example

Here’s your current code:

<input type="text" name="catphotourl" placeholder="cat photo URL" required />
<input type="radio" />
Indoor

Here’s what it’s asking for:

<input type="radio" />
<input type="text" name="catphotourl" placeholder="cat photo URL" required />
Indoor

I just swapped the two input tags because it wants to see the radio button before the text box.

thanks so much i have seen the problem

1 Like

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