The © or © symbols represent the HTML copyright sign. These symbols let you embed a copyright sign on a web page. The copyright sign does not appear on most keyboards so you need to use the HTML symbol code.
HTML has symbols and entities that may not necessarily be found on a keyboard easily, if they appear at all. This is because there are hundreds of possible symbols you may want to use on a computer. Your keyboard would have hundreds of keys to represent all the symbols.
This article explains how to create the copyright symbol in HTML using various shortcuts.
HTML Copyright Symbol
You can create an HTML copyright symbol using the © or © symbol codes. These are often enclosed within a paragraph. The ampersand denotes that want to embed a special character onto the web page.
The syntax for the copyright symbol is:
<p>© 2020 Career Karma</p>
This displays the following text:
© 2020 Career Karma
We could also use the © to achieve the same goal. The ampersand and semi-colon must be specified. Otherwise, the copyright symbol will not embed onto your web page. This is because © and © are special HTML characters.
When creating a web page, it’s often a good idea to claim ownership of what you create. This will give you some legal protection of your work. To claim ownership, use a copyright notice in your footer to protect your or your client’s material. You may want to use a copyright symbol to make your claim of ownership explicit.
Copyright HTML Reference
The following table illustrates the different ways you can create an HTML copyright symbol in your code:
On a Windows or a Mac machine, there are special shortcuts you can use just to create the actual character itself. Alt + 0169 will get the copyright character (©) on Windows, while it is option + G on Mac.
Use the HTML Entity Name or Number to create the special character. Wrap © or © in a set of <span> tags and get the same result.
Copyright Symbol HTML Example
A common place to use a copyright symbol is in a footer. Let’s write a copyright notice that appears in a footer:
<footer> <p>Created by Career Karma. © 2020</p> </footer>
The HTML <footer> tag tells our code that we are creating a footer for our web page. Within that footer we have specified an HTML <p> tag. The <p> tag contains some text and a copyright symbol. Our code displays:
Created by Career Karma. © 2020
We have successfully created a copyright symbol.
Using HTML Copyright Symbol In Your Code
Let’s take a look at a full example of the HTML copyright symbol.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="style.css" rel="stylesheet" type="text/css" /> <style> body { font-family: Arial } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 15px; } table, footer { margin: 20px auto; text-align: center; } tr:nth-child(even) { background-color: #dddddd; } span { color: blue; } </style> <script> function todayDate(){ var d = new Date(); var n = d.getFullYear() + " "; return document.getElementById("date").innerHTML = n; } </script> </head> <body onload=todayDate()> <table bordered> <tr> <th>Option</th> <th>shortcut or syntax</th> </tr> <tr> <td>Windows</td> <td>Alt + 0169</td> </tr> <tr> <td>Mac</td> <td>option + G</td> </tr> <tr> <td>HTML Entity Name</td> <td><span><span></span>&copy;<span><span></span></td> </tr> <tr> <td>HTML Entity Number</td> <td><span><span></span>&#169;<span><span></span></td> </tr> </table> <footer> © <em id="date"></em>Career Karma </footer> </body> </html>
We use the copyright symbol the fourth to last line in the footer HTML code. Switch out the ways to get them all to work for you.
Conclusion
The HTML copyright symbol is represented by © or ©. You can use this code to embed the copyright symbol onto a web page if this character is not represented on your keyboard.
Do you want to learn more about HTML and how to become a web developer? Check out our complete How to Learn HTML guide. In this guide, you’ll find expert advice on learning HTML and a list of top online learning resources.
About us: Career Karma is a platform designed to help job seekers find, research, and connect with job training programs to advance their careers. Learn about the CK publication.