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

What's the copyright code for html? The objectives keeps telling me: "Bummer:" Please help.

<h3>Design & Development</h3> <p>Contact me at <a href="mailto:cookiesonbake@gmail.com">this email</a>.</p> <p>©2017</p> </body> </html>

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

6 Answers

David Brener
David Brener
3,794 Points

Julia, Your problem seems to be in the HTML itself. Use the ampersand like this Design &amp; Development and try &copy; 2017 Please refer to my code block below.

<!DOCTYPE html> 
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h3>Design &amp; Development</h3>
    <p>Contact me at <a href="mailto:cookiesonbake@gmail.com">this email</a>.</p>
    <p>&copy; 2017</p>
  </body>
</html>
David Brener
David Brener
3,794 Points
<!DOCTYPE html> 
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h3>Design &amp; Development</h3>
    <p>Contact me at <a href="mailto:cookiesonbake@gmail.com">this email</a>.</p>
    <p>&copy; 2017</p>
  </body>
</html>
Gari Merrifield
Gari Merrifield
9,597 Points

David's answer shows the correct syntax, but offers no explanation, so I would add the following :

Bare ampersands would be a problem. HTML Entities start with the ampersand and end with a semi-colon.

A little about reserved characters : https://developer.mozilla.org/en-US/docs/Glossary/Entity

And a couple of charts to help you find the entity you need :

https://dev.w3.org/html5/html-author/charref

https://www.freeformatter.com/html-entities.html

Mohamed Ahmed
Mohamed Ahmed
6,517 Points

Remove Ⓒ symbol and write © this entity rather than Ⓒ symbol so the browser will render it to Ⓒ symbol , and the objectives will not telling you Bummer anymore.

Gari Merrifield
Gari Merrifield
9,597 Points

except it won't like the bare ampersand either...

Pepe Toño
Pepe Toño
13,815 Points

In this excersise you have to symbols you need to write in html code, the first one is: "&" and the second one is: "the copyright"; for the first one replace by "&" and for the second one replace by "©". Happy coding!

I'm still stuck. I can't get it to work.

Bummer: Make sure you're setting the entity for the ampersand.
index.html

<!DOCTYPE html> <html> <head> <title>My Page</title> </head> <body> <h3>Design & Development</h3> <p>Contact me at <a href="mailto:cookiesonbake@gmail.com">this email</a>.</p> <p>&COPY; 2017/p> </body> </html> ​

I want thank everyone that came to he my recuse for the challenge question that I was stuck. You all are awesome. Thanks again for the support.

Julia C.