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

Kalif Yusuf
Kalif Yusuf
2,245 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
5,969 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
177,538 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
2,245 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
177,538 Points

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