HTML Symbols

Introduction

HTML symbols allow you to display a variety of characters that are not easily accessible on a standard keyboard. These symbols include mathematical symbols, currency signs, arrows, and many other special characters. Using HTML entities, you can ensure these symbols are rendered correctly by the browser.

Common HTML Symbols

Mathematical Symbols

HTML provides entities for a variety of mathematical symbols.

  • + (Plus): + or +
  • - (Minus): − or −
  • × (Multiplication): × or ×
  • ÷ (Division): ÷ or ÷
  • = (Equals): = or =
  • (Not Equal): ≠ or ≠
  • < (Less Than): &lt; or &#60;
  • > (Greater Than): &gt; or &#62;
  • (Less Than or Equal To): &le; or &#8804;
  • (Greater Than or Equal To): &ge; or &#8805;

Example

<p>5 &plus; 5 = 10</p>
<p>10 &minus; 5 = 5</p>
<p>5 &times; 5 = 25</p>
<p>10 &divide; 2 = 5</p>
<p>10 &lt; 20</p>
<p>10 &gt; 5</p>
<p>10 &le; 10</p>
<p>20 &ge; 10</p>
<p>10 &ne; 5</p>

Currency Symbols

HTML provides entities for various currency symbols.

  • $ (Dollar): &dollar; or &#36;
  • (Euro): &euro; or &#8364;
  • £ (Pound): &pound; or &#163;
  • ¥ (Yen): &yen; or &#165;
  • ¢ (Cent): &cent; or &#162;

Example

<p>&dollar;100</p>
<p>&euro;100</p>
<p>&pound;100</p>
<p>&yen;100</p>
<p>&cent;50</p>

Arrows

HTML provides entities for various arrow symbols.

  • (Left Arrow): &larr; or &#8592;
  • (Up Arrow): &uarr; or &#8593;
  • (Right Arrow): &rarr; or &#8594;
  • (Down Arrow): &darr; or &#8595;
  • (Left-Right Arrow): &harr; or &#8596;

Example

<p>&larr; Left</p>
<p>&uarr; Up</p>
<p>&rarr; Right</p>
<p>&darr; Down</p>
<p>&harr; Left-Right</p>

Greek Letters

HTML provides entities for Greek letters.

  • Α (Alpha): &Alpha; or &#913;
  • Β (Beta): &Beta; or &#914;
  • Γ (Gamma): &Gamma; or &#915;
  • Δ (Delta): &Delta; or &#916;
  • α (alpha): &alpha; or &#945;
  • β (beta): &beta; or &#946;
  • γ (gamma): &gamma; or &#947;
  • δ (delta): &delta; or &#948;

Example

<p>&Alpha; &Beta; &Gamma; &Delta;</p>
<p>&alpha; &beta; &gamma; &delta;</p>

Miscellaneous Symbols

HTML provides entities for a variety of other symbols.

  • © (Copyright): &copy; or &#169;
  • ® (Registered): &reg; or &#174;
  • (Trademark): &trade; or &#8482;
  • ° (Degree): &deg; or &#176;
  • (Paragraph): &para; or &#182;
  • § (Section): &sect; or &#167;
  • (Bullet): &bull; or &#8226;
  • (Ellipsis): &hellip; or &#8230;

Example

<p>&copy; 2023 Company Name</p>
<p>Trademark: &trade;</p>
<p>Temperature: 25&deg;C</p>
<p>New paragraph &para;</p>
<p>Section symbol &sect;</p>
<p>Bull &bull; point</p>
<p>Ellipsis &hellip;</p>

Example: Using Multiple HTML Symbols in a Document

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Symbols Example</title>
</head>
<body>
    <h1>HTML Symbols Examples</h1>
    
    <section>
        <h2>Mathematical Symbols</h2>
        <p>5 &plus; 5 = 10</p>
        <p>10 &minus; 5 = 5</p>
        <p>5 &times; 5 = 25</p>
        <p>10 &divide; 2 = 5</p>
        <p>10 &lt; 20</p>
        <p>10 &gt; 5</p>
        <p>10 &le; 10</p>
        <p>20 &ge; 10</p>
        <p>10 &ne; 5</p>
    </section>
    
    <section>
        <h2>Currency Symbols</h2>
        <p>&dollar;100</p>
        <p>&euro;100</p>
        <p>&pound;100</p>
        <p>&yen;100</p>
        <p>&cent;50</p>
    </section>
    
    <section>
        <h2>Arrows</h2>
        <p>&larr; Left</p>
        <p>&uarr; Up</p>
        <p>&rarr; Right</p>
        <p>&darr; Down</p>
        <p>&harr; Left-Right</p>
    </section>
    
    <section>
        <h2>Greek Letters</h2>
        <p>&Alpha; &Beta; &Gamma; &Delta;</p>
        <p>&alpha; &beta; &gamma; &delta;</p>
    </section>
    
    <section>
        <h2>Miscellaneous Symbols</h2>
        <p>&copy; 2023 Company Name</p>
        <p>Trademark: &trade;</p>
        <p>Temperature: 25&deg;C</p>
        <p>New paragraph &para;</p>
        <p>Section symbol &sect;</p>
        <p>Bull &bull; point</p>
        <p>Ellipsis &hellip;</p>
    </section>
</body>
</html>

Conclusion

HTML symbols enhance the ability to display a wide range of characters and special symbols on web pages. By using entities like &plus;, &euro;, &larr;, &Alpha;, and &copy;, you can ensure that these symbols are rendered correctly. Understanding and using HTML symbols effectively is crucial for creating well-structured and readable web content.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top