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

replacing amperstams and copyright symbols

still not getting how to replace "&" and copyright symbols with html entitys

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h3>Design & amp; Development</h3>
    <p>Contact me at <a href="mailto:clayboy.cb@gmail.com">clayboy.cb@gmail.com</a>.</p>
    <p> & copy; 2017</p>
  </body>
</html>
André Larsen
André Larsen
9,652 Points

I believe that either you type the NUMBER or the SHORTCODE/ENTITY (in this case we take the copyright symbol). For example, the number for the copyright symbol is "&-#169;" - or you can also type the entity, which is "&-copy;".

These codes give you the symbol you want, so if I want to say "Copyright Clayboy", you type in "&-#169; André" or "&-copy; Clayboy"

Don't beat yourself up about not remembering all of them. W3Schools has a nice list of them here "https://www.w3schools.com/html/html_symbols.asp"

Edit: I didn't know my HTML symbols would display as "symbols" and not the "code" itself so I added a "-" between the & signs. Hope it helps.

© & copy

2 Answers

Ben Reynolds
Ben Reynolds
35,170 Points

You have an extra space between the ampersands and the entity name. They should be right next to each other. For example the trademark symbol would look like this:

&trade;
André Larsen
André Larsen
9,652 Points

The NUMBER for copyright

&#169;

The ENTITY/SHORTCODE for copyright

&copy;

Forgot to add this so you could see the code for the symbols :D