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

Kalif Yusuf
Kalif Yusuf
4,056 Points

Copyright Symbol

What is wrong with my copy symbol. I think it is correct but I am still getting errors. Why?

<p>©2017</p>

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h3>Design & Development</h3>
    <p>Contact me at <a href="mailto:calafdoon@gmail.com">this email</a>.</p>
    <p>&copy;2017</p>
  </body>
</html>
Emily Luebbering
Emily Luebbering
8,305 Points

Hi! What kind of errors are you getting? When I ran this code the copyright symbol was fine in the browser.

However I know the Ampersand symbol (&) is a reserved HTML entity, it's better written as & (and it's just showing up as &, but you can see it here: https://www.w3schools.com/html/html_entities.asp)

2 Answers

Steven Parker
Steven Parker
231,236 Points

There's nothing wrong with the copyright entity, but the instructions said "Replace the ampersand and copyright symbol with an HTML character entity.", so the other half of the task still needs to be done.

The error message was giving a hint: "Bummer: Make sure you're setting the entity for the ampersand."

Kalif Yusuf
Kalif Yusuf
4,056 Points

Thanks Steven. I was confused. I though I was just asked the entity for the copyright symbol. but the question also asked the entity for ampersand itself which is &

Thanks you both

Steven Parker
Steven Parker
231,236 Points

Kalif Yusuf — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!