LESSON 2.7
HTML Entities: Special Characters
Display symbols your keyboard can't type
Learn how to use HTML entities to show copyright symbols, em dashes, angle brackets, and other special characters that browsers would otherwise misread.
💡 The Concept
What Are HTML Entities?
HTML special characters — symbols like copyright marks, em dashes, and accented letters — cannot simply be typed directly into your HTML. There are two main reasons you’ll reach for HTML entities:
- Reserved characters. Characters that HTML uses for its own syntax, like
<,>, and&. You need entities to display these literally on a page. - Special characters. Symbols that aren’t on a standard keyboard, like ©, ™, £, or —. Using entities ensures they display correctly across all browsers and character encodings.
© → © (copyright)
™ → ™ (trademark)
The Most Common HTML Entities
Here’s a handy reference table for the entities you’ll use most often:
| Character | Named Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less-than sign |
| > | > | Greater-than sign |
| © | © | Copyright symbol |
| ® | ® | Registered trademark |
| ™ | ™ | Trademark symbol |
| Non-breaking space | |
| — | — | Em dash |
| – | – | En dash |
No need to memorize any of these. When you need the HTML Entity, simply use a search engine to find the HTML entity code you need with a query like this: “HTML entity for copyright symbol”.
Practical Examples
Adding a Copyright Notice
A copyright notice in the footer of a page is one of the most common uses of HTML entities:
<footer>
<small>© 2024 My Awesome Website. All rights reserved.</small>
</footer>
This renders as: © 2024 My Awesome Website. All rights reserved.
Using a Non-Breaking Space
A regular space in HTML can be collapsed or ignored. A non-breaking space ( ) forces the browser to keep a space and prevents a line break between two words:
<p>Call us: 555-1234</p>
<p>10 kg</p>
This is useful when you don’t want a phone number or measurement to wrap onto two lines awkwardly.
Curly Quotes for Polished Typography
Instead of straight “dumb” quotes, use curly quotes for a more professional look:
<blockquote>
<p>“The best way to learn web development is to build things.”</p>
</blockquote>
Result: “The best way to learn web development is to build things.”
🎬 Video Demonstration
This video demonstrates how to add a copyright symbol and other special characters to a web page using HTML entities.
Exercise: Try It Yourself
💡 If you are making a website template: Add the © copyright entity to the footer of your website template. See the full website template guide for reference.
Step 1: In JSFiddle or your template, add a paragraph using the © entity followed by the year and your name: © 2026 Your Name. All Rights Reserved.
Step 2: If you are working in your template, place it inside your <footer> element and wrap it in <small> tags.
Step 3: Save and view the result in your browser, or click Run in JSFiddle.
Your code should look like this, but with your name and the correct year.

Summary
HTML entities are short codes that let you display special characters safely in your web pages. They start with an ampersand (&) and end with a semicolon (;). You’ll use them to:
- Display reserved HTML characters like
&,<, and>as visible text - Add symbols like ©, ™, and — that aren’t on a standard keyboard
- Control spacing with
Named entities like © are readable and easy to remember. No need to memorize them all — when you need one, a quick search for something like “HTML entity for copyright symbol” will get you the answer in seconds.
❓ Frequently Asked Questions
The less-than and greater-than signs are part of HTML syntax. When a browser sees a less-than sign, it assumes the start of a tag. If you type one directly into your content, the browser may misread everything that follows as a tag name and hide it from the page. Using < and > tells the browser to display the character as visible text rather than treating it as markup.
The ampersand is the character that signals the start of an HTML entity. When a browser sees &, it expects an entity name or number to follow, ending with a semicolon. If you type & directly and it is not followed by a valid entity, some browsers will display it incorrectly or flag it as an error. Using & ensures the ampersand always displays as the visible character you intend.
HTML collapses any number of spaces in your code down to a single space on the page. A non-breaking space ( ) is a special space character that the browser will not collapse and will not use as a line-break point. Use it when you want two words to stay together on the same line, like a phone number, a measurement, or a name where breaking across lines would look awkward.
An em dash is the longer of the two. It is used as a strong pause or interruption in a sentence, similar to how a colon or parentheses might be used. An en dash is shorter and is typically used for ranges, such as page numbers (10-20) or years (2020-2025). The names come from typography: an em dash is roughly the width of the letter M, and an en dash is roughly the width of the letter N.
With UTF-8 declared in your head element, your browser can display most special characters even if you type them directly in your editor. However, HTML entities are still necessary for reserved characters like the ampersand and the less-than sign, since those are part of HTML syntax itself. For symbols like the copyright sign, using the named entity is a reliable habit that ensures correct display regardless of how the file is saved or transferred.
★ Key Takeaways
Some characters cannot be typed directly into HTML without causing problems. This lesson introduced HTML entities, which are codes you use for symbols like copyright signs, arrows, and accented letters. Next, you will learn about the anchor tag, which is how you create links in HTML. Links are what connects the whole web together.
Google Ads
The costs of this website are partially offset by revenue from Google Ads.Tools of the Trade
HTML/CSS Lessons
-
-
-
1.3. HTML Tag Preview
-
-
-
2.2. The HTML Framework
-
-
2.4. HTML Headings
-
-
-
-
-
-
3.01. Introduction to CSS
-
3.02. How CSS Cascades
-
-
-
-
3.05. CSS Colors
-
3.06. RGBA Colors
-
-
3.08. Font and Text Properties
-
3.09. Classes and IDs
-
-
-
-
-
4.3. HTML Embedded Images
-
-
-
-
-
-
5.1. CSS Borders
-
5.2. CSS Border Radius
-
5.3. CSS Gradients
-
5.4. CSS Box Shadows
-
5.5. CSS Text Shadows
-
7.1. The Display Property
-
-
-
7.4. The Box Model
-
-
-
-
-
-
9.1. Website Tables
-
9.2. HTML Forms
-
-
9.4. Special Form Fields
-
9.5. Embedding Multimedia
-
-
9.7. Keyboard Shortcuts
-
10.1. What Is a Framework?
-
10.2. Font Awesome Icons
-
-
10.4. Bootstrap Grid System
-
-
10.6. Bootstrap Navigation
-
-
11.2. Purchasing a Domain Name
-
11.3. Website Hosting
-
11.4. Nameservers and DNS
-
11.5. FTP
-
11.6. GitHub Pages
