Sarah Chan
Sarah Chan

Reputation: 41

When I use the © symbol it displays © instead

I'm trying to add the © All rights reserved text in my footer. I've done that but when I physically put the © in the index.html file it displays this instead © All rights reserved.

I'm not putting the  symbol myself. It auto generates it on the website. In the file itself, it does not exist. It doesn't even exist when I do view-source. How can I fix this issue?

Upvotes: 0

Views: 521

Answers (3)

Songtham T.
Songtham T.

Reputation: 195

Try adding this to the HTML head. This issue is related to character encoding

<head>
...
<meta charset="utf-8">
...
</head>

Upvotes: 0

Aniket Velhankar
Aniket Velhankar

Reputation: 451

Inorder to incorporate the copyright symbol, you can use © in your code try this -

&copy; All rights reserved 

Upvotes: 1

Muhammad Bilal
Muhammad Bilal

Reputation: 3018

Click the "Run code snippet" button to check output.

<!DOCTYPE html>
<html>
<style>
body {
    font-size: 20px;
}
</style>
<body>

<p>I will display &#169;</p>
<p>I will display &#xA9;</p>
<p>I will display &copy;</p>

</body>
</html>

Upvotes: 2

Related Questions