Error inBasic HTML and HTML5: Create a Form Element

The example had a typo, the / should not have been in front of the URL. Also, in the video, he forgot to put the entire URL, and just put the last part of the URL. Also, it wasn’t a Chrome thing with me, like for some people. Answer is this:

Your code so far


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

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

that was how the challenge was when the video was created

but you are also explicitly told in the description to write

action="https://freecatphotoapp.com/submit-cat-photo"

anyway

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

but you are also explicitly told in the description to write

action="https://freecatphotoapp.com/submit-cat-photo"

Which is what I tried to do in the first place, but when told it was wrong, I looked at the video.

hey there is no error in your code, i copied your code and executed it , the execution was successful.

Thank you, but originally there was, I made the mistake of following the example, which put a / in front of the URL, I think it was a typo. I actually thought that didn’t make sense, but me, being new at this, thought, “Oh well, what do I know? I don’t know what I’m doing.” I should have trusted my instincts and taken the / out before looking at the video, which is apparently outdated, and that solution seemed wonky as well. After that, I went back with my original instinct, and Voila, Eureka! I guess it shows we should be more confident and trust ourselves a bit more while learning this. Anyhow, thank you for your response, and being nice, I appreciate it. Have a great day, and happy programming!