HTML Symbols

HTML Symbols special characters होते हैं जो keyboard से सीधे type करना मुश्किल होते हैं या browser उन्हें normal text की तरह interpret नहीं करता।
इन symbols को HTML में entities की मदद से safely display किया जाता है।

HTML Symbols का उपयोग क्यों किया जाता है?

Symbols का उपयोग mathematical expressions, currency, arrows, copyright, trademark और UI elements में किया जाता है।
Direct symbol लिखने से browser issue आ सकता है, इसलिए entities preferred होती हैं।

HTML Symbol लिखने का तरीका

HTML Symbols को entity के रूप में लिखा जाता है।

Name based format:

&symbolName;

Number based format:

&#symbolNumber;

Common Mathematical Symbols

&plus;    <!-- + -->
&minus;   <!-- − -->
&times;   <!-- × -->
&divide;  <!-- ÷ -->
&equals;  <!-- = -->
&ne;      <!-- ≠ -->
&le;      <!-- ≤ -->
&ge;      <!-- ≥ -->

Example:

<p>10 &times; 2 = 20</p>

Currency Symbols

&dollar;  <!-- $ -->
&euro;    <!-- € -->
&pound;   <!-- £ -->
&yen;     <!-- ¥ -->
&#8377;   <!-- ₹ -->

Example:

<p>Total Amount: &#8377;1500</p>

Arrow Symbols

&rarr;   <!-- → -->
&larr;   <!-- ← -->
&uarr;   <!-- ↑ -->
&darr;   <!-- ↓ -->
&harr;   <!-- ↔ -->

Example:

<p>Next &rarr; Previous</p>

Copyright और Legal Symbols

&copy;    <!-- © -->
&reg;     <!-- ® -->
&trade;   <!-- ™ -->
&sect;    <!-- § -->

Example:

<p>&copy; 2025 MyWebsite</p>

Card और Shape Symbols

&hearts;   <!-- ♥ -->
&diams;    <!-- ♦ -->
&clubs;    <!-- ♣ -->
&spades;   <!-- ♠ -->

Example:

<p>&hearts; Love &hearts;</p>

Greek Letter Symbols

&alpha;   <!-- α -->
&beta;    <!-- β -->
&gamma;   <!-- γ -->
&pi;      <!-- π -->
&omega;   <!-- ω -->

Example:

<p>Value of &pi; is approximately 3.14</p>

UI और Special Symbols

&check;   <!-- ✓ -->
&cross;   <!-- ✗ -->
&star;    <!-- ★ -->
&bull;    <!-- • -->

Example:

<p>Status: &check; Approved</p>

Emoji Symbols in HTML

Emoji को numeric entities से लिखा जाता है।

&#128512;  <!-- 😀 -->
&#128640;  <!-- 🚀 -->
&#10084;   <!-- ❤️ -->

Example:

<p>Welcome &#128512;</p>

UTF-8 Encoding और Symbols

Symbols को सही दिखाने के लिए HTML document में UTF-8 charset होना चाहिए।

<meta charset="UTF-8">

Symbol Name vs Symbol Number

Name-based entities readable होती हैं लेकिन हर symbol के लिए available नहीं होतीं।
Number-based entities हर symbol के लिए काम करती हैं और ज्यादा reliable मानी जाती हैं।

Example:

&copy;
&#169;

दोनों का output same होता है।

HTML Symbols Summary

HTML Symbols special characters दिखाने के लिए उपयोग होते हैं
Symbols को entities के रूप में लिखना safe तरीका है
Currency, math, arrows, legal और UI symbols widely used हैं
UTF-8 encoding best practice है

Share your love