HTML Symbols Entities

Detailed list of various HTML symbol entities, each with its own description and usage example:


Common Special Characters

  1. Ampersand (&)
  • Entity: & or &
  • Description: Represents the ampersand symbol (&), often used in text.
  • Example: <p>This & that</p> displays as “This & that”.
  1. Less-Than Sign (<)
  • Entity: &lt; or <
  • Description: Displays a less-than sign, crucial for HTML tags.
  • Example: <div>Hello</div> is rendered correctly.
  1. Greater-Than Sign (>)
  • Entity: &gt; or >
  • Description: Shows a greater-than sign, used in tag closures.
  • Example: <p>Value &gt; 100</p> shows “Value > 100”.
  1. Hyphen/Dash (-)
  • Entity: &ensp;
  • Description: Renders an en space for typographical purposes.
  • Example: &ensp; adds a space in text.
  1. Non-Breaking Space ()
  • Entity: &nbsp;
  • Description: Prevents line breaks in text.
  • Example: <span>&nbsp;</span> keeps content on one line.

Punctuation and Typographical Symbols

  1. Single Quotation Mark (')
  • Entity: &apos; or '
  • Description: Represents a single quote, useful in attributes.
  • Example: <input value=&apos;'Test&apos;>
  1. Double Quotation Mark (")
  • Entity: &quot; or "
  • Description: Displays a double quote, often used in HTML attributes.
  • Example: <p>&quot;Hello&quot;</p> shows “Hello”.
  1. Curly Braces ({, })
  • Entity: { and }
  • Description: Renders literal braces, useful in CSS or JS contexts.
  • Example: <span class="{test}">Test</span>
  1. Ellipsis ()
  • Entity: &hellip;
  • Description: Displays three dots for trailing text.
  • Example: This is an … example.
  1. Em Dash ()
    • Entity: &emdash;
    • Description: Longer dash used in sentences.
    • Example: He left—never to return.

Mathematical Operators and Scientific Symbols

  1. Plus-Minus Sign (±)
    • Entity: &plusmn;
    • Description: Shows a plus-minus symbol.
    • Example: Value ± 5%
  2. Multiply Sign (×)
    • Entity: &times;
    • Description: Displays the multiplication operator.
    • Example: 2 × 3 = 6
  3. Divide Sign (÷)
    • Entity: &divide;
    • Description: Shows division operator.
    • Example: 4 ÷ 2 = 2
  4. Square Root ()
    • Entity: &sqrt;
    • Description: Displays the square root symbol.
    • Example: &sqrt;x
  5. Integral Sign ()
    • Entity: &int;
    • Description: Renders mathematical integral sign.
    • Example: ∫ab f(x) dx
  6. Infinity Symbol ()
    • Entity: &infin;
    • Description: Displays infinity symbol.
    • Example: Values approaching ∞

Arrows and Directional Icons

  1. Right Arrow ()
    • Entity: &rightarrow;
    • Description: Points to the right, useful in navigation.
    • Example: Click → Proceed.
  2. Left Arrow ()
    • Entity: &leftarrow;
    • Description: Points to the left for indicating direction.
    • Example: ← Back to start.
  3. Upward Arrow ()
    • Entity: &uparrow;
    • Description: Points upward, used in status indicators.
    • Example: Click ↑ to scroll up.
  4. Downward Arrow ()
    • Entity: &downarrow;
    • Description: Points downward for indicating direction.
    • Example: Scroll ↓ for more content.

Currency Symbols

  1. Dollar Sign ($)
    • Entity: $
    • Description: Represents US currency.
    • Example: $100 shows $100.
  2. Euro Sign ()
    • Entity: &euro;
    • Description: Displays the euro symbol.
    • Example: €50
  3. Pound Sterling (£)
    • Entity: &pound;
    • Description: Shows British currency.
    • Example: £20
  4. Yen Sign (¥)
    • Entity: &yen;
    • Description: Displays Japanese yen symbol.
    • Example: ¥10,000

Intellectual Property Symbols

  1. Copyright Symbol (©)
    • Entity: &copy;
    • Description: Represents copyright notice.
    • Example: © 2023 Author.
  2. Trademark Symbol ()
    • Entity: &trade;
    • Description: Shows trademark symbol.
    • Example: Brand ™
  3. Registered Trademark Symbol (®)
    • Entity: &reg;
    • Description: Displays registered trademark.
    • Example: Product ®

Box Drawing Characters

  1. Top Horizontal Line ()
    • Entity: &shy;
    • Description: Renders a hyphenation point.
    • Example: Line ­ here
  2. Corner Arrow Down Right (↘)
    • Entity: &searrow;
    • Description: Points down-right, useful in diagrams.
    • Example: ←↘
  3. Heavy Multiplication X (X)
    • Entity: &times;
    • Description: Renders a bold multiplication sign.
    • Example: ×

Braille Patterns and Special Characters

  1. Braille Dot Pattern ()
    • Entity: &#x2806;
    • Description: Represents a braille dot, useful for accessibility.
    • Example: Braille & #x2806;

Emoji and Modern Symbols

  1. Smiling Face (😊)
    • Entity: &#128512;
    • Description: Displays a smiley emoji.
    • Example: 😊
  2. Heavy Check Mark (✔️)
    • Entity: &#10004;
    • Description: Renders a checkmark, useful for checkboxes.
    • Example: ✔️ Selected.

XML and HTML Entities

  1. Double Prime ()
    • Entity: &Prime;
    • Description: Displays double prime, used in measurements.
    • Example: 5 ″ meters.
  2. Single Prime ()
    • Entity: &apos;
    • Description: Shows single prime for minutes or feet.
    • Example: 5’6″ height.

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.