HTML entities

Entities

Represent reserved characters using HTML Entities

Proper rendering and encoding of characters in web pages

In HTML, entities are special character codes that are used to represent reserved characters, symbols, or characters that have special meaning in HTML markup. They help ensure proper rendering and encoding of characters in web pages. Here are some commonly used HTML entities:

EntityCode
""
&&
<&lt;
>&gt;
 &nbsp;
¡&iexcl;
¢&cent;
£&pound;
¤&curren;
¥&yen;
¦&brvbar;
§&sect;
¨&uml;
©&copy;
ª&ordf;
«&laquo;
¬&not;
­&shy;
®&reg;
¯&macr;
°&deg;
±&plusmn;
²&sup2;
³&sup3;
´&acute;
µ&micro;
&para;
·&middot;
¸&cedil;
¹&sup1;
º&ordm;
»&raquo;
¼&frac14;
½&frac12;
¾&frac34;
¿&iquest;
À&Agrave;
Á&Aacute;
Â&Acirc;
Ã&Atilde;
Ä&Auml;
Å&Aring;
Æ&AElig;
Ç&Ccedil;
È&Egrave;
É&Eacute;
Ê&Ecirc;
Ë&Euml;
Ì&Igrave;
Í&Iacute;
Î&Icirc;
Ï&Iuml;
Ð&ETH;
Ñ&Ntilde;
Ò&Ograve;
Ó&Oacute;
Ô&Ocirc;
Õ&Otilde;
Ö&Ouml;
×&times;
Ø&Oslash;
Ù&Ugrave;
Ú&Uacute;
Û&Ucirc;
Ü&Uuml;
Ý&Yacute;
Þ&THORN;
ß&szlig;
à&agrave;
á&aacute;
â&acirc;
ã&atilde;
ä&auml;
å&aring;
æ&aelig;
ç&ccedil;
è&egrave;
é&eacute;
ê&ecirc;
ë&euml;
ì&igrave;
í&iacute;
î&icirc;
ï&iuml;
ð&eth;
ñ&ntilde;
ò&ograve;
ó&oacute;
ô&ocirc;
õ&otilde;
ö&ouml;
÷&divide;
ø&oslash;
ù&ugrave;
ú&uacute;
û&ucirc;
ü&uuml;
ý&yacute;
þ&thorn;
ÿ&yuml;

Using HTML entities, you can ensure that reserved characters, such as the less-than sign (<), greater-than sign (>), and ampersand (&), are displayed correctly in the browser. The non-breaking space entity ( ) is particularly useful when you need to add extra spacing between elements. Additionally, entities like the left double quotation mark (“) and copyright symbol (©) allow you to represent special characters in your content.

HTML Code Example

<p>This is an example of using HTML entities: &copy; </p>

The above HTML code demonstrates how to use the HTML entity © to represent the copyright symbol. By using entities, you can display special characters and symbols correctly in your web pages, ensuring proper rendering and accessibility.

Emoji Codes

EmojiHTML Code
😀&#128512;
😃&#128515;
😄&#128516;
😁&#128513;
😆&#128518;
😅&#128517;
🤣&#129315;
😂&#128514;
🙂&#128578;
🙃&#128579;
😉&#128521;
😊&#128522;
😇&#128519;
😍&#128525;
🥰&#129392;
😘&#128536;
😗&#128535;
😚&#128538;
😙&#128537;
😋&#128523;
😛&#128539;