HTML Symbols
In this page:
&entity_name;
&#number;
&#xhex;
Mathematical Symbols
HTML provides a wide range of entity codes to display complex mathematical operators, fractions, and relationships cleanly on your page.
Example: Mathematical Symbols
<p>5 × 4 ÷ 2 = 10</p>
Displaying Greek Letters
Greek letters are commonly used in mathematics, physics, and science. HTML supports the entire Greek alphabet, allowing you to render lowercase and uppercase Greek characters cleanly using simple named entities.
Example: Displaying Greek Letters
<p>Α β χ</p>
Interactive Directional Arrows
Using arrow symbols is a great way to guide your visitors' eyes toward call-to-action buttons or to indicate sliding menus without needing to load heavy image files.
Example: Interactive Directional Arrows
<p>Next page →</p>
Card Suit Shapes
HTML includes built-in symbol codes for classic card suits (Spades, Hearts, Clubs, and Diamonds), allowing you to render these shapes cleanly on your page.
Example: Card Suit Shapes
<p>♠ ♥ ♣ ♦</p>
Numbered vs. Named Symbol Entities
Every HTML symbol can be written as either a named entity (like ∞) or a numbered entity (like ∞). While named entities are easier to memorize, numbered entities are more widely supported on older operating systems and legacy mobile devices.
Example: Numbered vs. Named Symbol Entities
<p>∞ is the same as ∞</p>
- Forgetting to include the closing semicolon (;) at the end of your symbol codes.
- Failing to write lowercase letters when typing named entities.
- Omitting the required hash symbol (#) at the start of your numbered entity codes.
- HTML symbols allow you to display mathematical operators, technical arrows, and Greek letters cleanly without using image files.
- Symbols behave like text, meaning you can easily style their color, size, and weight using standard CSS.
- Write symbols using named entities for easy reading, or numbered entities for maximum browser support.
HTML symbols are natively supported by all modern and legacy web browsers.
Chapter Quiz — Complete all 10 topics to unlock
0/10 topics done
Complete these topics first: