HTML Entities

HTML entities are used to display reserved characters in HTML and to represent characters that cannot be typed on a keyboard. They are helpful for ensuring that your content is correctly interpreted by web browsers.

Commonly Used HTML Entities

Symbol Entity Name Entity Number Description Example
& & & Ampersand
Try yourself
        
            &
        
    
< &lt; &#60; Less Than
> &gt; &#62; Greater Than
" &quot; &#34; Double Quote
Try yourself
        
            &quot;
        
    
' &apos; &#39; Single Quote
Try yourself
        
            &apos;
        
    
© &copy; &#169; Copyright
Try yourself
        
            &copy;
        
    
® &reg; &#174; Registered Trademark
Try yourself
        
            &reg;
        
    
  &nbsp; &#160; Non-Breaking Space
Try yourself
        
            &nbsp;
        
    
&euro; &#8364; Euro
Try yourself
        
            &euro;
        
    
£ &pound; &#163; Pound
Try yourself
        
            &pound;
        
    
¥ &yen; &#165; Yen
Try yourself
        
            &yen;
        
    
¢ &cent; &#162; Cent
Try yourself
        
            &cent;
        
    
§ &sect; &#167; Section
Try yourself
        
            &sect;
        
    
&trade; &#8482; Trademark
Try yourself
        
            &trade;
        
    
&larr; &#8592; Left Arrow
Try yourself
        
            &larr;
        
    
&rarr; &#8594; Right Arrow
Try yourself
        
            &rarr;
        
    
&uarr; &#8593; Up Arrow
Try yourself
        
            &uarr;
        
    
&darr; &#8595; Down Arrow
Try yourself
        
            &darr;
        
    

Why Use HTML Entities?

Using HTML Entities

To use an HTML entity, simply include it in your HTML code where you want the character to appear. Here are a few examples:

Example: Ampersand
Try yourself
        
            &amp;
        
    

In this example, the ampersand character (&) is displayed using the &amp; entity.


Example: Less than and Greater than
Try yourself
        
            &lt;&gt;
        
    

This example shows how to display the less than (<) and greater than (>) characters using their respective entities.


Example: Quotation Marks
Try yourself
        
            &quot;&apos;
        
    

In this example, both single (') and double (") quotation marks are displayed using their respective entities.


Special Symbols and Characters

HTML entities are also used to represent a wide range of special symbols and characters. Here are a few examples:

Character Entity Name Entity Number Description Example
&infin; &#8734; Infinity
Try yourself
        
            &infin;
        
    
π &pi; &#960; Pi
&sum; &#8721; Summation
Try yourself
        
            &sum;
        
    
&radic; &#8730; Square Root
Try yourself
        
            &radic;
        
    
&int; &#8747; Integral
Try yourself
        
            &int;
        
    
&Delta; &#916; Delta
Try yourself
        
            &Delta;
        
    
± &plusmn; &#177; Plus-Minus
Try yourself
        
            &plusmn;
        
    
÷ &divide; &#247; Division
Try yourself
        
            &divide;
        
    
&asymp; &#8776; Approximately Equal
Try yourself
        
            &asymp;