Introduction
HTML symbols are special characters that can be displayed using HTML entity names or numeric entity codes. Symbols are commonly used for copyright, trademarks, currency, arrows, mathematical operators, card suits, stars, and other special characters. In this chapter, you’ll practice displaying commonly used HTML symbols with simple solved examples.
Question 1
Problem Statement
Display copyright, trademark, and registered symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Common Symbols</title>
</head>
<body>
<h1>Website Footer</h1>
<p>© 2026 CodeMantra</p>
<p>CodeMantra™</p>
<p>CodeMantra®</p>
</body>
</html>
Output
Website Footer
© 2026 CodeMantra
CodeMantra™
CodeMantra®
Step-by-Step Explanation
©displays ©.™displays ™.®displays ®.- These symbols are commonly used for brands and copyrights.
Question 2
Problem Statement
Display different currency symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Currency Symbols</title>
</head>
<body>
<h1>Product Prices</h1>
<p>Dollar: $100</p>
<p>Euro: €90</p>
<p>Pound: £80</p>
<p>Rupee: ₹500</p>
<p>Yen: ¥1000</p>
</body>
</html>
Output
Product Prices
Dollar: $100
Euro: €90
Pound: £80
Rupee: ₹500
Yen: ¥1000
Step-by-Step Explanation
- HTML entities display different currency symbols.
- Currency symbols improve readability on shopping and finance websites.
Question 3
Problem Statement
Display mathematical symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Math Symbols</title>
</head>
<body>
<h1>Math Examples</h1>
<p>5 × 6 = 30</p>
<p>20 ÷ 4 = 5</p>
<p>10 ± 2</p>
<p>2 ≠ 5</p>
</body>
</html>
Output
Math Examples
5 × 6 = 30
20 ÷ 4 = 5
10 ± 2
2 ≠ 5
Step-by-Step Explanation
×displays ×.÷displays ÷.±displays ±.≠displays ≠.
Question 4
Problem Statement
Display arrow symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Arrow Symbols</title>
</head>
<body>
<h1>Directions</h1>
<p>← Left</p>
<p>→ Right</p>
<p>↑ Up</p>
<p>↓ Down</p>
</body>
</html>
Output
Directions
← Left
→ Right
↑ Up
↓ Down
Step-by-Step Explanation
←displays a left arrow.→displays a right arrow.↑displays an up arrow.↓displays a down arrow.
Question 5
Problem Statement
Display star, heart, and music symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Special Symbols</title>
</head>
<body>
<h1>Favorite Symbols</h1>
<p>Star: ★</p>
<p>Heart: ❤</p>
<p>Music: ♫</p>
</body>
</html>
Output
Favorite Symbols
Star: ★
Heart: ❤
Music: ♫
Step-by-Step Explanation
★displays ★.❤displays ❤.♫displays ♫.- Numeric entities can display many Unicode symbols.
Question 6
Problem Statement
Display playing card suit symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Card Suit Symbols</title>
</head>
<body>
<h1>Playing Cards</h1>
<p>Spade: ♠</p>
<p>Heart: ♥</p>
<p>Diamond: ♦</p>
<p>Club: ♣</p>
</body>
</html>
Output
Playing Cards
Spade: ♠
Heart: ♥
Diamond: ♦
Club: ♣
Step-by-Step Explanation
♠displays ♠.♥displays ♥.♦displays ♦.♣displays ♣.
Question 7
Problem Statement
Display check mark and cross symbols.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Check Mark Symbols</title>
</head>
<body>
<h1>Task Status</h1>
<p>✔ HTML Completed</p>
<p>✘ CSS Pending</p>
</body>
</html>
Output
Task Status
✔ HTML Completed
✘ CSS Pending
Step-by-Step Explanation
✔displays a check mark.✘displays a cross mark.- These symbols are useful for task lists and status indicators.
Question 8
Problem Statement
Display Greek letters using HTML entities.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Greek Letters</title>
</head>
<body>
<h1>Greek Symbols</h1>
<p>Alpha: α</p>
<p>Beta: β</p>
<p>Gamma: γ</p>
<p>Delta: δ</p>
</body>
</html>
Output
Greek Symbols
Alpha: α
Beta: β
Gamma: γ
Delta: δ
Step-by-Step Explanation
αdisplays α.βdisplays β.γdisplays γ.δdisplays δ.- Greek letters are commonly used in mathematics and science.
Question 9
Problem Statement
Display the degree symbol for temperature.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>Degree Symbol</title>
</head>
<body>
<h1>Today's Weather</h1>
<p>Temperature: 32°C</p>
<p>Room Temperature: 24°C</p>
</body>
</html>
Output
Today's Weather
Temperature: 32°C
Room Temperature: 24°C
Step-by-Step Explanation
°displays the degree symbol (°).- It is commonly used with temperature and angles.
Question 10
Problem Statement
Create a webpage that displays different HTML symbols together.
HTML Code
<!DOCTYPE html>
<html>
<head>
<title>HTML Symbols Example</title>
</head>
<body>
<h1>HTML Symbols Demo</h1>
<p>© 2026 CodeMantra™</p>
<p>Course Fee: ₹2,999</p>
<p>Temperature: 28°C</p>
<p>Success: ✔</p>
<p>Direction: →</p>
<p>Heart: ♥</p>
<p>Math: 15 ÷ 3 = 5</p>
</body>
</html>
Output
HTML Symbols Demo
© 2026 CodeMantra™
Course Fee: ₹2,999
Temperature: 28°C
Success: ✔
Direction: →
Heart: ♥
Math: 15 ÷ 3 = 5
Step-by-Step Explanation
©displays ©.™displays ™.₹displays ₹.°displays °.✔displays ✔.→displays →.♥displays ♥.÷displays ÷.
Key Takeaways
- HTML symbols are displayed using entity names or numeric entity codes.
©displays the copyright symbol.™displays the trademark symbol.®displays the registered trademark symbol.°displays the degree symbol.×and÷display mathematical symbols.- Arrow symbols are useful for navigation and instructions.
- Currency symbols improve the readability of prices.
- Numeric entities can display many Unicode symbols.
- HTML symbols are supported by all modern browsers.
Frequently Asked Questions (FAQs)
1. What are HTML symbols?
HTML symbols are special characters displayed using HTML entity names or numeric entity codes.
2. What is the difference between HTML entities and HTML symbols?
HTML entities are the codes (such as ©), while HTML symbols are the characters they display (such as ©).
3. How do you display the copyright symbol?
©
4. How do you display the degree symbol?
°
5. How do you display the Rupee symbol?
₹
6. How do you display arrow symbols?
Use entities like ←, →, ↑, and ↓.
7. Can I use numeric codes instead of entity names?
Yes. HTML supports both entity names and numeric entity codes.
8. Are HTML symbols supported in all browsers?
Yes. Standard HTML symbols are supported by all modern browsers.
9. Can I display emojis using HTML?
Yes. Emojis can be displayed using Unicode numeric entities.
10. Where are HTML symbols commonly used?
They are commonly used for prices, temperatures, mathematical expressions, navigation, branding, and special characters.
Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.
