Help with crate text field section

Tell us what’s happening:
The information given i am not sure if it is a typo but according to the information given to crate a text input is since input elements are self closing but i keep getting it wrong. The video showed it was /> on the end which would make it not slef closing. Please explain what i am missing?

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>
<input type="text"/>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-N960U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36.

Challenge: Create a Text Field

Link to the challenge:


Apparently you’re using self-closing tag for input tag. Correct way to use input is as follows:

<input type="text">
1 Like

Hey there,

if I copy and paste your code,
it works.

You should probably reset the exercise and add your code again.
Or use another browser if a reset doesn’t work.

I was just making sure i understood that self closing meant you didnt need to end it with />

Since the video on the exercise said to put /> but yet for input elements they are supposed to be self closing correct?

Yes i know, i put > but said it was wrong then i watch the video on the exercise for help an he put /> so i did an then run the test an it said correct for some reason.