HTML - Entities

HTML Entities

HTML entities are used to represent characters in HTML web pages that can't be typed with the keyboard directly. They are also characters that when typed directly, the browser might interpret them as markup language code. Examples are Math Symbols, Copyright Marks, Special Symbols, etc.

Example

Entity Name and Entity Numbers

The entity name and entity numbers are both used to display HTML entities

  • The entity name is written in this way: &entityname.
  • The entity numbers is written in this way: &#entitynumber.
tips
TIP:

The difference between entity name and entity numbers is that: entity name starts with ampersand (&) followed by letters, while entity numbers starts with ampersand and hash (&#) followed by numbers.


Frequently Used Entities

Below are some frequently used entities in HTML

RS. DESC. ENT. NAME ENT. NO.
 

non-breaking space

 

 

<

less than

&lt;

&#60;

>

greater than

&gt;

&#62;

"

quotation mark

&quot;

&#34;

&

ampersand

&amp;

&#38;

'

apostrophe

&apos;

&#39;

¢

cent

&cent;

&#162;

£

pound

&pound;

&#163;

¥

yen

&yen;

&#165;

euro

&euro;

&#8364;

©

copyright

&copy;

&#169;

trade mark

&trade;

&#8482;

®

registered trademark

&reg;

&#174;


Entity References

To see more entities kindly visit Entity References.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT