TL;DR – HTML symbols can be added to the text using their entity names or character codes.
Contents
Adding HTML Special Characters
To be comfortable to use, a computer keyboard has to be rather compact. However, this also means it can contain a limited amount of symbols. That is why a lot of HTML special characters cannot be simply typed in.
The easiest way to include special characters in HTML documents is by writing their entity names. An entity name always starts with an ampersand (&) and ends with a semicolon (;):
&entityname;
There is no need to use tags, attributes, properties, or values. When writing text in your website, include the entity name when needed:
<!–– Use — or — to add — ––>
<h2>Learn to add the beautiful em dash — it is so easy!</h2>
However, not all HTML symbols have entity names. In that case, you should write HTML special character codes - entity numbers, decimal or hexadecimal references:
<p>This is the trademark symbol - ™</p>
<p>This is the trademark symbol - ™</p>
<p>This is the trademark symbol - ™</p>
HTML Entities List
In the following section, we will introduce you to the most commonly used HTML special characters and ways to add them to your documents. However, the whole selection of them is much wider – you can check it out in this page created by the World Web Consortium.
Most Common Entities
Char | Entity | Number | Definition |
---|---|---|---|
& | & | & | Ampersand |
* | * | * | Asterisk |
@ | @ | @ | At symbol |
% | % | % | Percent |
® | ® | ® | Registered sign |
© | © | © | Copyright sign |
™ | ™ | ™ | Trademark |
|   | Non-breaking space | |
° | ° | ° | Degree |
℃ | ℃ | Celsius degree | |
℉ | ℉ | Farenheit degree |
Currency Symbols
Char | Entity | Number | Definition |
---|---|---|---|
$ | $ | $ | Dollar |
¢ | ¢ | ¢ | Cent |
€ | € | € | Euro |
£ | £ | £ | Pound |
¥ | ¥ | ¥ | Yen |
₹ | ₹ | Rupee |
- Easy to use with a learn-by-doing approach
- Offers quality content
- Gamified in-browser coding experience
- The price matches the quality
- Suitable for learners ranging from beginner to advanced
- Free certificates of completion
- Focused on data science skills
- Flexible learning timetable
- Simplistic design (no unnecessary information)
- High-quality courses (even the free ones)
- Variety of features
- Nanodegree programs
- Suitable for enterprises
- Paid Certificates of completion
- A wide range of learning programs
- University-level courses
- Easy to navigate
- Verified certificates
- Free learning track available
- University-level courses
- Suitable for enterprises
- Verified certificates of completion
Mathematical Symbols
Char | Entity | Number | Definition |
---|---|---|---|
+ | &plus | + | Plus |
− | − | − | Minus |
× | × | × | Multiplication |
÷ | ÷ | ÷ | Division |
= | = | = | Equal |
≠ | ≠ | ≠ | Not equal |
± | ± | ± | Plus or minus |
∀ | ∀ | ∀ | For all |
∃ | ∃ | ∃ | There exists |
∂ | ∂ | ∂ | Partial differential |
∇ | ∇ | ∇ | Nabla |
∅ | ∅ | ∅ | Empty sets |
∉ | ∉ | ∉ | Not an element of |
∈ | ∈ | ∈ | Element of |
∋ | ∋ | ∋ | Contains as a member |
∑ | ∑ | ∑ | N-ary summation |
∏ | ∏ | ∏ | N-ary product |
Greek Letters
Char | Entity | Number | Definition |
---|---|---|---|
Β | Β | Β | Greek capital letter beta |
A | Α | Α | Greek capital letter alpha |
Δ | Δ | Δ | Greek capital letter delta |
Γ | Γ | Γ | Greek capital letter gamma |
Ζ | Ζ | Ζ | Greek capital letter zeta |
E | Ε | Ε | Greek capital letter epsilon |
Other Symbols
Char | Entity | Number | Definition |
---|---|---|---|
↑ | ↑ | ↑ | Upwards arrow |
← | ← | ← | Leftwards arrow |
↓ | ↓ | ↓ | Downwards arrow |
→ | → | → | Rightwards arrow |
♣ | ♣ | ♣ | Black club suit |
♠ | ♠ | ♠ | Black spade suit |
♦ | ♦ | ♦ | Black diamond suit |
♥ | ♥ | ♥ | Black heart suit |
HTML Symbols: Useful Tips
- To prevent your web page from failing to display HTML special characters, define the
charset
as UTF-8 in the <meta> tag of your HTML document. - If you need to include East Asian characters in your web page, consider adding ruby annotations to help the user with their pronunciation.
- With HTML symbol codes, you can also include emojis: try adding ✌ or ☘ to your page!