Detailed list of various HTML symbol entities, each with its own description and usage example:
Common Special Characters
- Ampersand (
&
)
- Entity:
&
or&
- Description: Represents the ampersand symbol (&), often used in text.
- Example:
<p>This & that</p>
displays as “This & that”.
- Less-Than Sign (
<
)
- Entity:
<
or<
- Description: Displays a less-than sign, crucial for HTML tags.
- Example:
<div>Hello</div>
is rendered correctly.
- Greater-Than Sign (
>
)
- Entity:
>
or>
- Description: Shows a greater-than sign, used in tag closures.
- Example:
<p>Value > 100</p>
shows “Value > 100”.
- Hyphen/Dash (
-
)
- Entity:
 
- Description: Renders an en space for typographical purposes.
- Example:
 
adds a space in text.
- Non-Breaking Space ()
- Entity:
- Description: Prevents line breaks in text.
- Example:
<span> </span>
keeps content on one line.
Punctuation and Typographical Symbols
- Single Quotation Mark (
'
)
- Entity:
'
or'
- Description: Represents a single quote, useful in attributes.
- Example:
<input value=''Test'>
- Double Quotation Mark (
"
)
- Entity:
"
or"
- Description: Displays a double quote, often used in HTML attributes.
- Example:
<p>"Hello"</p>
shows “Hello”.
- Curly Braces (
{
,}
)
- Entity:
{
and}
- Description: Renders literal braces, useful in CSS or JS contexts.
- Example:
<span class="{test}">Test</span>
- Ellipsis (
…
)
- Entity:
…
- Description: Displays three dots for trailing text.
- Example: This is an … example.
- Em Dash (
—
)- Entity:
&emdash;
- Description: Longer dash used in sentences.
- Example: He left—never to return.
- Entity:
Mathematical Operators and Scientific Symbols
- Plus-Minus Sign (
±
)- Entity:
±
- Description: Shows a plus-minus symbol.
- Example: Value ± 5%
- Entity:
- Multiply Sign (
×
)- Entity:
×
- Description: Displays the multiplication operator.
- Example: 2 × 3 = 6
- Entity:
- Divide Sign (
÷
)- Entity:
÷
- Description: Shows division operator.
- Example: 4 ÷ 2 = 2
- Entity:
- Square Root (
√
)- Entity:
&sqrt;
- Description: Displays the square root symbol.
- Example: &sqrt;x
- Entity:
- Integral Sign (
∫
)- Entity:
∫
- Description: Renders mathematical integral sign.
- Example: ∫ab f(x) dx
- Entity:
- Infinity Symbol (
∞
)- Entity:
∞
- Description: Displays infinity symbol.
- Example: Values approaching ∞
- Entity:
Arrows and Directional Icons
- Right Arrow (
→
)- Entity:
→
- Description: Points to the right, useful in navigation.
- Example: Click → Proceed.
- Entity:
- Left Arrow (
←
)- Entity:
←
- Description: Points to the left for indicating direction.
- Example: ← Back to start.
- Entity:
- Upward Arrow (
↑
)- Entity:
↑
- Description: Points upward, used in status indicators.
- Example: Click ↑ to scroll up.
- Entity:
- Downward Arrow (
↓
)- Entity:
↓
- Description: Points downward for indicating direction.
- Example: Scroll ↓ for more content.
- Entity:
Currency Symbols
- Dollar Sign (
$
)- Entity:
$
- Description: Represents US currency.
- Example: $100 shows $100.
- Entity:
- Euro Sign (
€
)- Entity:
€
- Description: Displays the euro symbol.
- Example: €50
- Entity:
- Pound Sterling (£)
- Entity:
£
- Description: Shows British currency.
- Example: £20
- Entity:
- Yen Sign (
¥
)- Entity:
¥
- Description: Displays Japanese yen symbol.
- Example: ¥10,000
- Entity:
Intellectual Property Symbols
- Copyright Symbol (
©
)- Entity:
©
- Description: Represents copyright notice.
- Example: © 2023 Author.
- Entity:
- Trademark Symbol (
™
)- Entity:
™
- Description: Shows trademark symbol.
- Example: Brand ™
- Entity:
- Registered Trademark Symbol (
®
)- Entity:
®
- Description: Displays registered trademark.
- Example: Product ®
- Entity:
Box Drawing Characters
- Top Horizontal Line (
─
)- Entity:
­
- Description: Renders a hyphenation point.
- Example: Line here
- Entity:
- Corner Arrow Down Right (
)- Entity:
↘
- Description: Points down-right, useful in diagrams.
- Example: ←
→
- Entity:
- Heavy Multiplication X (
X
)- Entity:
×
- Description: Renders a bold multiplication sign.
- Example: ×
- Entity:
Braille Patterns and Special Characters
- Braille Dot Pattern (
⠂
)- Entity:
⠆
- Description: Represents a braille dot, useful for accessibility.
- Example: Braille & #x2806;
- Entity:
Emoji and Modern Symbols
- Smiling Face (
)- Entity:
😀
- Description: Displays a smiley emoji.
- Example:
- Entity:
- Heavy Check Mark (
)- Entity:
✔
- Description: Renders a checkmark, useful for checkboxes.
- Example:
Selected.
- Entity:
XML and HTML Entities
- Double Prime (
″
)- Entity:
″
- Description: Displays double prime, used in measurements.
- Example: 5 ″ meters.
- Entity:
- Single Prime (
′
)- Entity:
'
- Description: Shows single prime for minutes or feet.
- Example: 5’6″ height.
- Entity:
Best Practices
- Use numeric entities (e.g.,
) for cross-browser compatibility.
- Replace special characters in user inputs to prevent XSS attacks.
- Utilize HTML entities for proper rendering of symbols across devices and browsers.