Part 1 Linking at will "Special characters must be escaped" error


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

I’m at a point where I’m reviewing, and I had this problem before, where my code runs successfully, but I still get the “special characters must be escaped” error and I’m not sure what that means or how to resolve it.

In this example, the error only occurs (or highlights) on the “<” angle bracket on the <img tag (there is only one, toward the bottom). Any Insight would be greatly appreciated!


Practice HTML

This is an example paragraph. Today is Sunday and I'm trying to learn HTML while I watch Bob's Burgers.

Some Bob's Burger's characters:

  • Bob
  • Lynda
  • Tina
  • Gene
  • Louise
  • Teddy
Bob's Burger's Wiki Page

Louise is my favorite character

<img src=“” alt=“Louise wearing pink bunny ears”

<do not remove the three backticks above>

Character code 27 is the ASCII Escape character. Any special character, that is, non-alpha, non-numeric, must be escaped if we wish the parser to recognize it as a printable character. URL’s are intentionally printable characters so they can be transmitted. A space in a URL is a special character.

The above is a preamble gleaned from a quick scan of your code. Will give the question further consideration and hopefully furnish a sensible explanation, presently. In the meantime, do you have a link to the exercise that we might peruse?

Oh yes! My aplologies!

1 Like

I must be spaced out or something. %27 is HEX. for character code 39. the single quote. D’oh!

And the modulo is the escape character from an encoding perspective. Pardon me for getting off track.

The error is a missing right carat, > on your img tag. However, the parser does not necessarily expect one as the next input. Any character will do, but since a newline (line break) is a special character, it must be preceded with \ to escape it.

In some environments the continuation token (or character) is recognized as an escape that allows the data or code to continue on the next physical line.

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