Special characters need to be escaped


Learn html &CSS part 1. 10/15

special characters need to be escaped. This message keeps coming up when I write different codes throughout this unit. What does it mean and how can I fix it?

 <a href="https://en.wikipedia.org/wiki/Brown_bear"target="_blank"<img src="#" alt="picture of a brown bear">"https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" />


You did not close the <a> tag from the beginning as:

You are missing > at the end.

You set your <img> source to be # that leads to nowhere and outside of image tags you've put the main url source where your image will get data from.

It should work as:

<img src="url" alt="some_name"/>

But because you need to encapsulate the image inside <a></a> tags:

<a href="url" target="_blank"><img src="url" alt="some_name"/></a>


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