tutorialstonight logo
A Platform To Learn To Code

HTML ENTITIES



There are some characters which are part of the syntax of any HTML element and have special meaning in an HTML document.

If you try to use a larger than (>) or smaller than (<) symbol in an HTML document then HTML will try to take out the meaning of these symbols and will mix up tags.

Example:

Example

Run the code

Some useful entity in HTML Document

Symbol Entity Number Description
! &#33; Exclamation mark
" &#34; Quotation mark
& &amp; &#38; Ampersand
' &#39; Apostrophe
( &#40; Left parenthesis
) &#41; Right parenthesis
, &#44; Comma
- &#45; Hiphaen
. &#46; Dot
/ &#47; Slash
: &#58; Colon
; &#59; Semicolon
< &lt; &#60; Greater-than
= &#61; Equal to
> &gt; &#62; Smaller-than
? &#63; Question mark
@ &#64; At mark
[ &#91; Left square bracket
\ &#92; Backslash
] &#93; Right square bracket
{ &#123; Left curly brace
| &#124; Verticle bar
} &#125; Right curly brace