How To Add Copyright Symbol To Your HTML Document

When building websites, you may want to display a copyright symbol to indicate ownership or rights over content. This symbol can easily be added to your HTML document using several methods, including Hex Code, HTML Entities, or Decimal Unicode.

Here are three simple methods to add the copyright symbol to your HTML page.

1. Using HEX Code

Hex codes represent characters using hexadecimal values. For the copyright symbol, the hex code is ©. You can insert this hex code into your HTML document to display the copyright symbol.

Example: This example illustrates the use of hex code to add a copyright symbol to your HTML document.

HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Copyright Symbol Example</title> </head> <body> <p>All rights reserved &#xA9; 2024 MyCompany.</p> </body> </html>

Output:

copyright-using-hex-code

Using HEX Code

2. Using HTML Entity

The easiest and most common method to add a copyright symbol in HTML is by using the HTML entity &copy;. This is a built-in entity in HTML, making it straightforward to insert the symbol without needing to remember any specific codes.

Example: This example illustrates the use of HTML entity to add a copyright symbol to your HTML document.

HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML Entity for Copyright</title> </head> <body> <p>&copy; 2024 MyCompany. All rights reserved.</p> </body> </html>

Output:

html-entity-copyright

Using HTML Entity

3. Using Decimal Unicode

Another method to add the copyright symbol is using its decimal Unicode value, which is &#169;. This method is similar to using hex code, but it uses the decimal representation of the symbol.

Example: This example illustrates the use of decimal unicode to add a copyright symbol to your HTML document.

HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Decimal Unicode for Copyright</title> </head> <body> <p>Content copyright &#169; 2024 MyCompany.</p> </body> </html>

Output:

Using Decimal Unicode

Comment More info Next Article How to Add Symbols in HTML?

K

kankshi25 Follow Improve

Từ khóa » Html Code To Copyright