Blog

HTML Symbols and Special Characters: A Complete Entity Guide

Want to add a copyright sign, currency symbol, arrow, accented letter, or mathematical character to a web page? HTML gives you several ways to display special characters, including named character entities, numeric character references, and direct Unicode text. Choosing the right method helps your content display correctly across browsers and devices.

This guide explains how HTML symbols work, shows useful examples you can copy, and covers common encoding mistakes. You do not need to memorize every code. Once you understand the basic formats, you can choose the simplest option for each situation.

What Are HTML Symbols and Character Entities?

HTML uses character references to represent certain characters in source code. A character entity can be written with a readable name, such as ©, or with a numeric code point, such as ©. Both forms display the copyright symbol: ©.

Character references are especially useful when a character has a special meaning in HTML syntax or when you want to make a symbol explicit in your markup. Modern HTML documents can also contain many Unicode characters directly, provided the document uses the correct encoding.

Three Ways to Add Special Characters in HTML

1. Named character references: These use a name between an ampersand and a semicolon. For example, & displays an ampersand and < displays a less-than sign.

2. Decimal numeric references: These use the character’s decimal Unicode code point. For example, © displays ©.

3. Hexadecimal numeric references: These use the hexadecimal code point after &#x. For example, © also displays ©.

For numeric references, the letter x in the hexadecimal form can be uppercase or lowercase. Including the semicolon is recommended because it makes the reference unambiguous.

Common HTML Symbols and Their Codes

Here are useful character references for common punctuation, currency, mathematics, and symbols. The rendered character is shown alongside its named or numeric reference.

Character Meaning HTML reference
© Copyright ©
® Registered trademark ®
™ Trademark ™
€ Euro €
£ Pound sterling £
¥ Yen or yuan ¥
° Degree °
± Plus-minus ±
× Multiplication ×
÷ Division ÷
≠ Not equal ≠
≤ Less than or equal to ≤
≥ Greater than or equal to ≥
∞ Infinity ∞
→ Right arrow →
← Left arrow ←
♥ Heart suit ♥
… Ellipsis …

Not every Unicode character has a named HTML reference. For less common symbols, use a decimal or hexadecimal numeric reference, or include the character directly in a UTF-8 document.

How to Display Special Characters in an HTML Page

For a basic HTML page, declare UTF-8 in the document head. Then you can write supported Unicode characters directly in your text.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Special Characters Example</title>
</head>
<body>
  <p>Copyright © 2026. All rights reserved.</p>
  <p>Price: €25</p>
  <p>Temperature: 22° C</p>
</body>
</html>

The UTF-8 declaration tells the browser how to interpret the document’s bytes. Make sure the file is actually saved as UTF-8 as well. A declaration alone cannot correct a file saved in a different encoding.

When Should You Escape Characters in HTML?

Some characters have a special role in HTML markup. If you want to show them as text rather than use them as part of a tag or attribute, write the appropriate character reference.

  • Ampersand (&): Use &amp; when displaying a literal ampersand in HTML text or an attribute value.
  • Less-than sign (<): Use &lt; when you want to show a less-than character without starting a tag.
  • Greater-than sign (>): Use &gt; when you need to display it as text.
  • Quotation marks: In quoted attribute values, encode quotation marks that would otherwise end the attribute. &quot; represents a double quotation mark.

Use context-appropriate escaping when inserting untrusted text into HTML. HTML text, HTML attributes, JavaScript, CSS, and URLs have different rules. A character entity is not a universal solution for every output context.

HTML Symbols vs. Unicode Characters

HTML character references and Unicode are related, but they are not the same thing. Unicode assigns a code point to a character. HTML character references are one way to write that code point in HTML source.

For example, © is the Unicode character U+00A9. You can write it directly in a UTF-8 HTML document, or represent it using &copy;, &#169;, or &#xA9;.

The browser resolves the reference and displays the character using an available font. Its appearance can vary between operating systems, browsers, and fonts. Some emoji and newer symbols may also require a font with suitable glyph support.

Common HTML Character Problems and Fixes

  • You see strange text such as é: Check that the document is saved as UTF-8 and that the server sends a compatible character encoding.
  • You see an empty square: The selected font may not contain the character. Try a font with broader Unicode coverage.
  • A reference appears literally: Check that the ampersand and semicolon are present and that the code is being interpreted as HTML rather than displayed inside a code block or escaped text area.
  • An ampersand breaks a URL or attribute: Encode it appropriately in HTML source, and use the correct URL handling for the destination context.
  • A symbol looks different on another device: Font and platform rendering can change the design even when the underlying Unicode character is the same.

How to Find the Right HTML Code for a Symbol

If you do not know a symbol’s entity name or Unicode code point, search for the character in a reliable symbol reference. You can also copy the character itself and use a Unicode lookup tool to find its code point. For HTML, choose a named reference when one is available and easy to recognize. Otherwise, a numeric reference or direct UTF-8 character is usually suitable.

For a quick workflow, find the symbol you need, copy it, and test it in the page where it will appear. Check both the source and the rendered page, especially when the symbol is used in a form, button, navigation label, or other interface element.

Frequently Asked Questions

What is the HTML code for the copyright symbol?
Use &copy;, &#169;, or &#xA9;. All three represent ©.

Can I use Unicode symbols directly in HTML?
Yes. Save the document as UTF-8 and declare <meta charset="UTF-8"> in the document head. Make sure the chosen font supports the character.

Do I need HTML entities for every special character?
No. Many Unicode characters can be included directly in UTF-8 HTML. Character references are useful for reserved markup characters, readability, and explicit representation.

What is the difference between &#169; and &#xA9;?
The first is a decimal numeric reference and the second is hexadecimal. Both represent the same copyright character.

Why should I include a semicolon after an HTML entity?
The semicolon marks the end of the character reference and helps prevent parsing ambiguity. Include it whenever possible.

Explore More Symbols on CoolSymbol24

HTML makes it possible to display a wide range of characters, but finding the right symbol can take time. Explore CoolSymbol24 to discover symbols and special characters you can copy for websites, documents, profiles, and messages.

Choose the character you need, copy it, and use it in your project. When adding it to HTML, remember to use UTF-8 and escape characters according to the context where they appear.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top