Tutorials Tonight's Logo
Follow Us

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:

If you want to write this <p>Hi i am stydying HTML.</p> in a webpage.

<p>Then you have to write &#60;p&#62;Hi i am studying HTML.&#60;/p&#62;.</p>
▶ 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

More Learning

Want to learn more about programming and web development? We have a few recommendations for you.


Follow Us

Copyright © Tutorials Tonight. All Rights Are Reserved.