ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

38-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 = <

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!