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 trialkevinkrato
5,452 PointsThe 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:
- which entities to replace them with.
- 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
12,644 PointsCharacter entities are used to display reserved characters in HTML. (w3schools)
ampersand = &
& <!-- & Entity Name -->
copyright = ©
© <!-- © Entity Name -->
You ask: "how to know which entities to replace them with"?
Use Character Entity Reference Chart (google it)
Some docs:
- https://www.w3schools.com/html/html_entities.asp
- https://developer.mozilla.org/en-US/docs/Glossary/Entity
Now, try again (i give you the clues to pass this mission).