To show a symbol on a web page, you can paste the symbol itself or write an HTML code for it. ©, © and © all show ©. This guide explains the three kinds of codes, when you need them, and the codes people use most, ready to copy.
The three kinds of HTML codes
| Kind | How it looks |
|---|---|
| Named code | ©: an ampersand, a name and a semicolon. Easy to read, but only some symbols have a name. |
| Number code | ©: the Unicode number in decimal. Works for every one of the more than 150,000 characters. |
| Hex code | ©: the same number in hexadecimal, with an x. Handy because Unicode charts list numbers in hex. |

All three give exactly the same result in the browser. Always end a code with the semicolon. A few codes work without it, but not reliably.
The most used HTML symbol codes
| Sign | Name code | Number code |
|---|---|---|
| © | © | © |
| ® | ® | ® |
| ™ | ™ | ™ |
| € | € | € |
| £ | £ | £ |
| ° | ° | ° |
| × | × | × |
| ÷ | ÷ | ÷ |
| ± | ± | ± |
| ≠ | ≠ | ≠ |
| ½ | ½ | ½ |
| → | → | → |
| ← | ← | ← |
| ✓ | ✓ | ✓ |
| ♥ | ♥ | ♥ |
| • | • | • |
| … | … | … |
| § | § | § |
| ¶ | ¶ | ¶ |
For dashes, see our em dash page. For any symbol that is not in this list, paste it into the Unicode converter, which shows its HTML code, name code and hex code at once.
HTML symbol code examples in a real page
Here is how the codes look inside real HTML.
A footer line: <p>© 2026 My Site. All rights reserved.</p> shows as © 2026 My Site. All rights reserved.
A price with a currency sign: <p>Only €9.99</p> shows as Only €9.99.
A temperature: <p>Today it is 25°C</p> shows as Today it is 25°C.
A math line: <p>5 × 4 = 20</p> shows as 5 × 4 = 20.
In each case the browser swaps the code for the symbol when it shows the page. View the page source to see the codes, and the page itself to see the symbols.
Five characters you should always write as codes
Some characters have a special meaning in HTML. If you type them as plain text, the browser may read them as part of the code instead of showing them.
| Character | Write it as |
|---|---|
| & Ampersand | & |
| < Less than | < |
| > Greater than | > |
| ” Double quote | " inside attributes |
| ‘ Apostrophe | ' inside attributes |
For example, to show the text 5 < 10 on a page, write 5 < 10 in your HTML.
Do you even need codes?
Most of the time, no. If your page uses UTF-8, which almost every modern site does with <meta charset="utf-8"> in the head, you can paste ©, € or ✓ straight into the HTML.
Codes still help in a few cases:
- Email newsletters and old systems that mangle symbols. Number codes are the safest choice there.
- Invisible characters, like the no-break space
, which you cannot see in your editor. - Characters that look alike, like the minus sign
−and the hyphen. A code makes it clear which one you used. - Code that other people will edit, where
©is easier to understand than a pasted symbol.
Symbols in CSS and JavaScript
HTML codes only work in HTML. CSS and JavaScript have their own way of writing the same Unicode number. Here is the check mark ✓, U+2713, in all three.
| Where | Code for ✓ |
|---|---|
| HTML | ✓ |
| CSS | "\2713" |
| JavaScript | "\u2713" |
In CSS, put the code inside the content property, like content: “\2713”;. The backslash is followed by the hex number. In JavaScript, use \u and four hex digits, or \u{…} for numbers with five or six digits, like emoji.
Common HTML code mistakes
Four mistakes beginners make with HTML codes.
Forgetting the semicolon. © without the ; may show as plain text. Always end the code with a semicolon.
Wrong case. Named codes are case sensitive. É gives É and é gives é. Check the case if the wrong symbol appears.
Writing a code where HTML codes do not work. © means nothing in CSS or JavaScript. Use the CSS or JavaScript form instead, as shown in the section above.
Typing & by accident. If you paste a code into a visual editor, the editor may turn the & into &. The page then shows the code itself instead of the symbol. Paste codes in the Code editor or a Custom HTML block.
Symbols in WordPress
In the block editor you can paste symbols directly into any paragraph. HTML codes work in the Code editor and in a Custom HTML block. WordPress also turns some plain characters into nicer ones when it shows a page, like straight quotes into curly quotes and two hyphens into a dash. That is normal and does not change what you saved.
Frequently asked questions
What is the HTML code for a space?
A normal space needs no code. For a space that keeps two words on the same line, use .
Are HTML codes case sensitive?
Yes, for named codes. É gives É and é gives é. Number codes are not affected.
Should I use named or number codes?
Use named codes for common symbols when you want readable HTML. Use number codes for everything else, and in emails, where they are the safest.
How do I find the HTML code for any symbol?
Paste the symbol into our Unicode converter. Every symbol page on this site, like the check mark or section sign, also lists its codes.
Do HTML codes work in emails?
Yes. Number codes like © are the safest choice in email newsletters, because some email apps mangle pasted symbols. Named codes work too, but number codes have the widest support.
Why does my code show as plain text on the page?
Three usual causes. The semicolon is missing. The code is in a visual editor that escaped the & into &. Or the code is inside a part of the page that does not read HTML, like a plain text file. Check the semicolon first.
Sources: the WHATWG HTML standard list of named character references and the W3C article Character encodings for beginners. Written by Muhammad Ilyas, updated October 2026.
More guides: Alt codes on Windows, symbols on a Mac and symbols on iPhone and Android.