Score code, devs, and debt fast.

Start free trial
HTML

HTML

HTML Symbols

In this tutorial you’ll learn how to include characters and symbols in your HTML that aren’t available on a standard keyboard. You’ll see how to use named and numeric entities to display currency signs, technical symbols, arrows, and more—plus tips and notes to avoid common pitfalls.

Learning Outcomes

By the end of this tutorial, you will be able to:

  • Explain what HTML symbols are and why entities are needed.
  • Use both named and numeric entities to insert currency, arrow, math, and other symbols.
  • Guarantee correct display by setting UTF-8 encoding and testing across browsers.

What Are HTML Symbols?

HTML symbols are special characters—like €, ®, or ∑—that either:

  • Have reserved meaning in HTML (e.g. <, >, &)
  • Don’t exist on most keyboards (e.g. Greek letters, mathematical operators)

To display them correctly in your pages, you replace the character with an HTML entity: text beginning with & and ending with ;.

Symbols are generally grouped by purpose or theme—currency, mathematical, arrow, typographic, miscellaneous, etc. Each category helps you quickly find the right symbol for prices, formulas, navigational cues, legal text, and decorative accents.

How to Insert Symbols in Your HTML

  1. Decide whether a named entity exists (e.g. &copy;).
  2. If not, use a numeric reference:
    • Decimal: &#169;
    • Hexadecimal: &#x00A9;
  3. Place the entity in your markup:
<p>Copyright © 2025: &copy; or &#169; or &#x00A9;</p>

Common HTML Symbol Categories

Below are four of the most-used symbol groups, each with a table of entities, a code example, and a “Notes” section.

Currency Symbols

Symbol Entity Name Decimal Code Description
&#8377; Indian Rupee
&euro; &#8364; Euro
¥ &yen; &#165; Japanese Yen
&#8383; Bitcoin
&#8381; Russian Ruble

Example:

<p>Currency Examples</p>
<ul>
  <li>Price in India: &#8377;1,499</li>
  <li>Price in Europe: &euro;29.99</li>
  <li>Crypto payout: &#8383;0.025 BTC</li>
</ul>

Output:

Currency Examples

  • Price in India: ₹1,499
  • Price in Europe: €29.99
  • Crypto payout: ₿0.025 BTC

Notes

  • If you include multiple currencies on one page, ensure your document’s <meta charset="UTF-8"> is set to avoid encoding issues.
  • Named entities aren’t available for every currency, so numeric codes fill the gaps.

Miscellaneous Symbols

Symbol Entity Name Decimal Code Description
© &copy; &#169; Copyright
® &reg; &#174; Registered trademark
&trade; &#8482; Trademark
§ &sect; &#167; Section sign
&para; &#182; Paragraph mark

Example:

<p>Legal Symbols</p>
<p>All rights reserved &copy; 2025 MyCompany™</p>
<p>Section marker: &sect;5. Paragraph symbol: &para;</p>

Output:

Legal Symbols

All rights reserved © 2025 MyCompany™

Section marker: §5. Paragraph symbol: ¶

Notes

  • Use trademark and registered symbols only where you have the legal right to do so.
  • Browsers render these in the same font as surrounding text; style with CSS if you need a different look.

Mathematical Symbols

Symbol Entity Name Decimal Code Description
&forall; &#8704; “For all”
&empty; &#8709; Empty set
&nabla; &#8711; Nabla
&sum; &#8721; Summation
&isin; &#8712; Element of

Example:

<p>Math Symbols</p>
<p>Universal quantifier: &forall;x ∈ S, P(x)</p>
<p>Summation: &sum;<sub>i=1</sub><sup>n</sup> i = n(n+1)/2</p>

Output:

Math Symbols

Universal quantifier: ∀x ∈ S, P(x)

Summation: ∑i=1n i = n(n+1)/2

Notes

  • For more complex mathematical markup, consider using MathML or a JavaScript library (e.g., KaTeX).
  • Always test on multiple browsers to confirm consistent rendering.

Arrow Symbols

Symbol Entity Name Decimal Code Description
&larr; &#8592; Left arrow
&uarr; &#8593; Up arrow
&rarr; &#8594; Right arrow
&darr; &#8595; Down arrow
&harr; &#8596; Left-Right arrow

Example:

<p>Navigation Arrows</p>
<p>Go back ← or forward → using the arrows</p>
<p>Scroll up ↑ or down ↓ to see more</p>

Output:

Navigation Arrows

Go back ← or forward → using the arrows

Scroll up ↑ or down ↓ to see more

Notes

  • Arrows can enhance links and buttons—just be sure they don’t confuse accessibility tools.
  • Provide accessible text (e.g., aria-label="Next page") when using arrows as visual cues.

Other HTML Entity References

Beyond the symbol groups we’ve covered, HTML also supports many more entity categories, including:

Category Sample Entities Description
Greek & Latin letters &Alpha;, &eacute; Standard letters with accents or from the Greek alphabet
Typographic marks &hellip;, &mdash;, &laquo;, &raquo; Punctuation and quotation marks for polished typography
Fractions &frac14;, &frac12;, &frac34; Common numeric fractions
Musical symbols &musicalnote;, &#x1D11E; Notes and clefs used in musical notation
Advanced mathematical operators &int;, &angle; Integral signs, angle symbols, and other specialized ops
Currency fractions &cent;, &pound; Subunit symbols like cents and pence
Emojis & pictographs &#x1F600;, &#x1F4A9; Graphic characters ranging from emoticons to icons

What Beginners Need to Know

  • Declare UTF-8 encoding. At the top of your HTML document, include:

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Your Page Title</title>
    </head>
    <body>
      <!-- Your content -->
    </body>
    </html>
    

    This ensures both named and numeric entities display correctly. If your editor or server has encoding settings, confirm they're set to UTF-8.

  • Use named vs. numeric entities. Favor named entities (e.g. &copy;) for readability; use numeric codes (&#169;) when no name exists.

  • No need to memorize all codes. Rely on your editor’s character map or a searchable reference to insert symbols quickly.

  • Test symbols across browsers. While most modern browsers support Unicode, verify key symbols render as expected in at least two browsers.

FAQs on HTML Symbols

What counts as an “HTML symbol”?

An HTML symbol is any character that isn’t part of the standard alphanumeric keyboard set—such as currency signs (€, ¥), mathematical operators (∑, ∀), arrows (→, ↑), punctuation marks (§, ¶), or pictographs (♫, ★). They’re used to convey specialized meaning or branding in web pages.

Can I use symbols directly in my HTML without any extra markup?

Yes—if your document is saved and served as UTF-8 you can often paste symbols directly (e.g. , , ). However, for maximum compatibility (especially with legacy tools or fonts), many developers still rely on a standardized reference so every symbol renders predictably.

Will all browsers display the same HTML symbols?

Most modern browsers support the full range of Unicode symbols when the correct character set is declared. Very old browsers or specialized embedded devices may lack certain glyphs, so it’s good practice to verify critical symbols in at least two browsers and provide fallbacks if needed.

How can I ensure symbols remain accessible?

Assistive technologies (like screen readers) may announce a symbol’s Unicode name (e.g. “euro sign” or “right arrow”). To provide context, wrap standalone symbols in a span with an aria-label or include a brief text description nearby so everyone understands their purpose.

Subscribe to our newsletter

Get the freshest news and resources for developers, designers and digital creators in your inbox each week

© 2000 – 2025 SitePoint Pty. Ltd.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.