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 trialClayton Bowland
2,874 Pointsreplacing amperstams and copyright symbols
still not getting how to replace "&" and copyright symbols with html entitys
<!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>
Massimo Ceron
22,372 Points© & copy
2 Answers
Ben Reynolds
35,170 PointsYou 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:
™
André Larsen
9,652 PointsThe NUMBER for copyright
©
The ENTITY/SHORTCODE for copyright
©
Forgot to add this so you could see the code for the symbols :D
André Larsen
9,652 PointsAndré Larsen
9,652 PointsI 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.