HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

HTML Symbols

In HTML, symbols are often represented using entities or character references.

HTML symbols include a wide range of characters, such as special symbols, mathematical symbols, arrows, and more.

These symbols are used to enhance the visual representation of content on web pages. Here are some examples of HTML symbols:

HTML Symbol Entities

HTML entities were described in the previous chapter.

Many mathematical, technical, and currency symbols, are not present on a normal keyboard.

To add such symbols to an HTML page, you can use the entity name or the entity number (a decimal or a hexadecimal reference) for the symbol:

Example

             
<p>I will display &euro</p>
<p>I will display &#8364</p>
<p>lI will display &#x20AC</p> 
            
You can click on above box to edit the code and run again.

Output

I will display €

I will display €

I will display €

Special Symbols:

  • &copy; represents the copyright symbol ("©").
  • &reg; represents the registered trademark symbol ("®").
  • &trade; represents the trademark symbol ("™").
  • &sect; represents the section symbol ("§")
  • &para; represents the paragraph symbol ("¶")

>Mathematical Symbols:

  • &plus; represents the plus sign ("+").
  • &minus; represents the minus sign ("-").
  • &times; represents the multiplication sign ("×").
  • &divide; represents the division sign ("÷").

Arrows:

  • &rarr; represents the right arrow ("→").
  • &larr; represents the left arrow ("←").
  • &uarr; represents the up arrow ("↑").
  • &darr; represents the down arrow ("↓").

Currency Symbols:

  • &dollar; represents the dollar sign ("$").
  • &euro; represents the Euro currency symbol ("€").
  • &pound; represents the pound sterling symbol ("£").
  • &yen; represents the yen symbol ("¥").

Miscellaneous Symbols:

  • &hearts; represents a heart symbol ("♥").
  • &star; represents an asterisk or star symbol ("★").
  • &check; represents a checkmark ("✔").
  • &times; represents the multiplication symbol ("×").

These symbols are represented in HTML using either named entities (such as &copy;) or numeric character references (such as &#169;). They allow you to include special characters in your HTML documents, ensuring proper rendering across different browsers.