How to add copyright symbol to your HTML document ?
Various symbols, including technical, mathematical, and currency symbols aren’t found on a normal keyboard.
There are three ways to add such symbols to an HTML document
- Using HEX Code
- Using HTML Code
- Using HTML Entity
In this article we will illustrate how to add the copyright © symbol.
1. Using HEX Code: The HEX code for the copyright symbol is “©“.
HTML
<!DOCTYPE html> < html > < head > < title >Add copyright symbol</ title > </ head > < body > < h2 >Welcome To GFG</ h2 > < p >© Copyright, GFG</ p > </ body > </ html > |
Output:
2. Using HTML Code:The HTML code for the copyright symbol is “©“.
HTML
<!DOCTYPE html> < html > < head > < title >Add copyright symbol</ title > </ head > < body > < h2 >Welcome To GFG</ h2 > < p >© Copyright, GFG</ p > </ body > </ html > |
Output:
3. Using HTML Entity: The HTML entity for the copyright symbol is “©“.
HTML
<!DOCTYPE html> < html > < head > < title >Add copyright symbol</ title > </ head > < body > < h2 >Welcome To GFG</ h2 > < p >© Copyright, GFG</ p > </ body > </ html > |
Output:
Other symbols can also be added similarly, using their respective codes.
Please Login to comment...