HTML Entities

HTMLWeb DevelopmentFront End Technology

In HTML, some characters are reserved for syntax declaration. Using these characters in text might cause unwanted errors. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will try to draw a meaning related to HTML tag.

NOTE  − Entity names are case sensitive so should be used as they are.

Syntax

Following is the syntax:

&entity_name

Or

&#entity_number

Following are some of the useful entities:

Result
Description
Entity Name
Entity Number
<
less than
&lt;&#60;
>
greater than
&gt;&#62;
&
ampersand
&amp;
&#38;
"
double quotation mark
&quot;&#34;
'
single quotation mark (apostrophe)
&apos;
&#36;
£
Pound
&pound;
&#163;
¥
Yen
&yen;
&#165;

Euro
&euro;
&#8364;
©
Copyright
&copy;
&#169;
®
registered trademark
&reg;
&#174;
raja
Published on 19-Sep-2019 15:09:23
Advertisements