"I am Saqib Jahangir. A passionate vlogger, software engineer, and avid traveler with a deep love for exploring the hidden gems of our beautiful planet. With a strong foundation in Application Development, Application Architecture & Database Design and Product Management, I bring over a decade of hands-on experience building secure, scalable, and resilient web applications for a diverse range of industries."

HTML Entities and Special Characters

 

In HTML, entities are used to display reserved characters, symbols, or special characters that cannot be typed directly or may be misunderstood by the browser.


🔹 Why Use HTML Entities?

  • Some characters like <, >, & are reserved in HTML and will be interpreted as code if written directly.
  • Entities help you display these characters correctly on the page.

Example

<p>5 &lt; 10 and 10 &gt; 5</p>
<p>Use &amp; to write "and".</p>
<p>Price: 100 &euro;</p>
<p>&copy; 2025 Your Name. All rights reserved.</p>

Output:

5 < 10 and 10 > 5
Use & to write "and".
Price: 100 €
© Your Name. All rights reserved.


🔹 Using Unicode with &#code;

You can also use numeric character references (decimal or hex):

·         &#169; → ©

·         &#x00AE; → ®

 

Popular Posts

Setting Up Your First Project Folder and Installing XAMPP or WAMP

Frontend vs Backend vs Full Stack