What is Syntax and how do i make it valid

I’ve done everything in this challenge and it says I need valid syntax idk what that means I even looked at the video and it said nothing about it. Helpp plz

Your code so far

  <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>
    <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" 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/75.0.3770.100 Safari/537.36.

Link to the challenge:

Think of syntax as punctuation. The problem is this line:

<input type="text" placeholder="cat photo URL"

It has invalid “punctuation”. It is missing a character at the end.

More broadly, syntax can mean just that things aren’t put together correctly.

1 Like

You forgot to close a tag, thats why its a syntax error!