Nesting existing input element inside a form element

I’ve been grateful for the little bits of advice ive already gotten and its been super helpful. The more i practice the more it starts to make sense to me, but now I am stuck on nesting an existing input element inside a form element…

Anyone on the hunt for a mentee? Ahahah

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="https:/"<input type="text" placeholder="cat photo URL">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.30

Challenge: Create a Form Element

Link to the challenge:

You have a couple of issues here. First, the format of your form is off. This is the example you were given:

<form action="url-where-you-want-to-submit-form-data">

And this is what you have (moved to matching format):

<form action="https:/"
  <input type="text" placeholder="cat photo URL">

The format is different and the input is different, but those don’t matter. What does matter is that you don’t close your opening form element and you lack a closing form element.

Additionally, the action url is not quite right.

When I fix those, the code passes for me.

Hey thanks for your prompt response! I’m still wrapping my head around the lingo - that is to say, despite wanting to learn for some time, i started yesterday haha.

I’m not sure with

what do i substitute with “https:/”
or how much of it should be substituted and how much should be like the example given?


I remember doing this one. This is what worked for me

<form action="the given site url"> *put here your input element* </form>

1 Like

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