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

Clayton Bowland
Clayton Bowland
2,621 Points

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.

2 Answers

Ben Reynolds
Ben Reynolds
35,147 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