Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Going Further with HTML Email Links and Entities Challenge

kevinkrato
kevinkrato
5,452 Points

The replace the ampersand and copyright logos exercise does not make sense.

I had to attempt multiple approaches to solving the exercise. The question format and areas to correct dont make sense.

-I tried removing(replacing) both the & and "copyright" symbols with & and © That was not accepted.

-I got lucky and decided to change the "&" to "&" and left the "copyright" symbol and followed it with a © .

The question asks you to replace the symbols with "html entities" but does not tell you:

  1. which entities to replace them with.
  2. that you cannot delete both place holders and replace them entirely with html entities.

It would be beneficial if students could see a "correct" version of these codes; that or have clearer instructions.

Anyway, great site. It's super helpful but man that was confusing and I think it needs correcting.

1 Answer

Ezra Siton
Ezra Siton
12,644 Points

Character entities are used to display reserved characters in HTML. (w3schools)

ampersand = &

  &amp; <!--  & Entity Name -->
  &copy;    <!-- © Entity Name -->

You ask: "how to know which entities to replace them with"?

Use Character Entity Reference Chart (google it)

Some docs:

Now, try again (i give you the clues to pass this mission).