HTML Punctuation Marks
Below are character codes for the HTML # sign, @ symbol, % percent sign,
HTML ampersand (& HTML code), HTML copyright symbol and HTML caret insertion point,
along with regular punctuation like the question mark, exclamation point,
non-breaking hyphen, non-breaking space and more.
HTML Entity (decimal) | |
HTML Entity (hex) | |
HTML Entity (named) | |
C/C++/Java source code |
HTML Symbol Entities
There are many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use an HTML entity name. If no entity name exists, you can use an entity number, a decimal, or hexadecimal reference.
How to add special characters in html
- Look up the character code you need.
- Place the code in your document.
You can use the friendly name if there is one, the decimal numeric code, or the hexadecimal numeric code.
eg. ® - registered trade mark ® or ® or ®<p>®<p> <p>®<p> <p>®<p>
- Add the unicode declaration to your document head.
Simply add the following meta tag anywhere inside the <head> of your web page. This will insure that your special characters display correctly.
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Usage Example
To add a trade mark sign to an HTML page, you can use the entity name or the entity number (a decimal or a hexadecimal reference) for the symbol.
HTML soruce code
<p>entity name : trade mark ™</p>
<p>decimal value : trade mark ™</p>
<p>hexadecimal value : trade mark ™</p>
HTML display
entity name : trade mark ™
decimal value : trade mark ™
hexadecimal value : trade mark ™
decimal value : trade mark ™
hexadecimal value : trade mark ™
JavaScript source code
alert("trade mark \u2122");
HTML Symbols
Emoticons Emoji Keyboard
Visit this page on your smartphone
Scan this QR-code with your smartphone
Share to your good friends
Welcome to share this webpage to your friends, if you think they will like it.