38-HTML Entities

0
404

This tutorial is all about HTML Entities.
In HTML, “entity” is a term for symbols such as trademark, copyright,  or foreign cash that exist on the standard keyboard.  On the other hand, to display these characters, you will be using different methods.

 

There are three parts for every entity, each begins with an ampersand  , then the entities name copy and finally a semicolon  ; .

 

Example of  Copyright:

 ©  =  ©      -> Copyright symbol.

Take Note that problem will occur when you forgot to include all three parts of entities.

 

List of Entities:

¢ Cent ¢ ¢
£ English Pound £ £
¤ Currency ¤ ¤
¥ Yen ¥ ¥
® Registered Trademark ® ®
° Degree(s) ° °
± Plus or Minus ± ±
¼ ¼ Fraction ¼ ¼
½ ½ Fraction ½ ½
¾ ¾ Fraction ¾ ¾

 

 

Example:

<p>
Body tag = &lt;body&gt;
Greater than = &gt; <br />
Less than = &lt; <br />
</p>

 

Result:

Body tag = <body>
Greater than = >
Less than = <

 

Readers might read also:

 

Facebook Comments
(Visited 42 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here