HTML Entities are like secret codes that help display special characters like <, £, ¥, €, © correctly on web pages. They prevent confusion and errors. You can use entity names (like ©) or entity numbers (like ©) to show these characters.
Syntax:
 &entity_name; or _number;
Entity names are case sensitive
Some useful Symbols with their Entity name and Entity numbers are listed below:
Example: In this example, we have represented different entity symbols in HTML
<!DOCTYPE html>
<html>
<body>
<h2>GeeksforGeeks</h2>
<div class=”container”>
<h3>Different entity symbol representation</h3>
<ul style=”list-style-type:none;”>
<li>
<h4>Indian currency: ₹</h4>
</li>
<li>
<h4>Euro: €</h4>
</li>
<li>
<h4>Pound: £</h4>
</li>
<li>
<h4>Yen: ¥</h4>
</li>
<li>
<h4>Dollar: $</h4>
</li>
</ul>
</div>
</body>
</html>
Reserved Characters: These characters are either reserved for HTML or those which are not present in the basic keyboard & can’t use them directly.
Example: Here, a few of the reserved characters are discussed:
Example: In this example, we have represented different entity symbols in HTML
<!DOCTYPE html>
<html>
<body>
<h2>GeeksforGeeks</h2>
<div class=”container”>
<h3>Different entity symbol representation</h3>
<ul style=”list-style-type:none;”>
<li>
<h4>Indian currency: ₹</h4>
</li>
<li>
<h4>Euro: €</h4>
</li>
<li>
<h4>Pound: £</h4>
</li>
<li>
<h4>Yen: ¥</h4>
</li>
<li>
<h4>Dollar: $</h4>
</li>
</ul>
</div>
</body>
</html>
Reserved Characters: These characters are either reserved for HTML or those which are not present in the basic keyboard & can’t use them directly.
Example: Here, a few of the reserved characters are discussed:
Not a member yet? Register now
Are you a member? Login now