Loading

Entities

  • HTML entities are special codes used to represent characters that have special meanings in HTML, such as reserved characters (like < and >) or characters with diacritics (accented characters).
  • HTML entities are used to display these characters correctly on web pages and to avoid conflicts with HTML syntax.

Entity Table

SymbolMeaningNameNumber

 
 non-breaking space&nbsp;&#160;
<less than&lt;&#60;
>greater than&gt;&#62;
&ampersand&amp;&#38;
"double quotation mark&quot;&#34;
'single quotation mark (apostrophe)&apos;&#39;
¢cent&cent;&#162;
£pound&pound;&#163;
¥yen&yen;&#165;
euro&euro;&#8364;
©copyright&copy;&#169;
®registered trademark&reg;&#174;

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Example</title>
</head>

<body>
    <h3>Entities example</h3>
    <p>This is an example of &lt;strong&gt;HTML entities&lt;/strong&gt;.</p>
    <p>Visit us at <a href="https://www.example.com">example.com</a>&nbsp;for more info.</p>
</body>

</html>

Output: