PROGRAMMING IN COMPUTERS (HTML MID-LEVEL) PART - #4

Hi there, Welcome to the another part of PROGRAMMING IN COMPUTER (HTML MID-LEVEL) PART - #4. In this part we will se about Character Entities in HTML and Syntax of these character entities in  HTML programming/codes.  


What are CHARACTER ENTITIES in HTML? 

Character Entities are the special signs/functions/symbols used in HTML to display any symbol or sign and run any function on the webpage. 

NOTE:- Entity names in HTML are case sensitive, and they are Empty Tag which does not need to close but Some Entity Characters Need To be Closed. 

Eg: <&nbsp;> is a character entity. 

There many types of character entities in HTML :-

  • <&nbsp;>
<&nbsp;> stands for Non-Breaking Space in HTML. It is a character entity in HTML which is used to give breaking spaces in HTML webpage. To use breaking between words or sentences just write <&nbsp;> in HTML program. 

Example: This is an <&nbsp;> <&nbsp;> breaking space.

Result: This is an              breaking spaces. (In HTML webpage)

NOTE:- Spacing in the given example may differ in webpage of HTML program. This is just shown for an example. 


  • <&gt;> Greater Than 
<&gt;> stands for Greater Than symbol in HTML. It is a character entity in HTML which is used to give greater than sign (>) in HTML webpage. To use it just write <&gt;> where you want to give the sign.

Example: 100 <&gt;> 70.

Result: 100 > 70 (In HTML webpage).


  • <&lt;> Less Than 
<&lt;> stands for Less Than symbol in HTML. It is a character entity in HTML which is used to give less than sign (<) in HTML webpage. To use it just write <&lt;> where you want to give the sign. 

Example: 100 <&lt;> 70.

Result: 100 < 70 (In HTML webpage).


  • & Ampersand
<&amp;> stands for ampersand in HTML. It is a character entity in HTML which is used to give ampersand sign (&) in HTML webpage. To use it just write <&amp;> where you want to give the sign.

Example: This is an ampersand sign:- <&amp;>

Result: This is an ampersand sign:- & (In HTML webpage).


  • <&apos> (') Single Quotation Mark 
<&apos;> stands for Quotation Mark in HTML. It is a character entity in HTML which is used to give single quotation sign (&) in HTML webpage. To use it just write <&apos;> where you want to give the sign.

Example: This is an Text written in <&apos;> Single Quotation Mark </&apos;>.

Result: This is an Text written in 'Single Quotation Mark'.(In HTML webpage).


  • <&quot;> (") Double Quotation Mark
<&quot;> stands for Double Quotation Mark in HTML. It is a character entity in HTML which is used to give double quotation sign (&) in HTML webpage. To use it just write <&quot;> where you want to give the sign.

Example: This is an Text written in <&quot;> Single Quotation Mark </&quot;>.

Result: This is an Text written in 'Double Quotation Mark'.(In HTML webpage).


  • <&cent;> (¢) Cent

<&cent;> stands for (¢) cent mark in HTML. It is a character entity in HTML which is used to give cent mark (¢) in HTML webpage. To use it just write <&cent;> where you want to give the sign.

Example: This is an cent mark :- <&cent;>.

Result: This is an cent mark:- ¢.


  • <&pound;> Pound (£)
<&pound;> entity gives Pound Mark (£) in HTML. It is a character entity in HTML which is used to give pound sign (£) in HTML webpage. To use it just write <&pound;> where you want to give the sign.

Example: This is a sign of Pound:- <&pound;>.

Result: This is a sign of Pound:- £.

  • <&yen;> Yen (¥)
<&yen;> entity gives Yen Mark (¥) in HTML. It is a character entity in HTML which is used to give Yen sign (¥) in HTML webpage. To use it just write <&yen;> where you want to give the sign.

Example: This is a sign of Yen:- <&yen;>.

Result: This is a sign of Yen:- ¥.

  • <&euro;> Euro (€)
<&euro;> entity gives Euro Mark (€) in HTML. It is a character entity in HTML which is used to give euro sign (€) in HTML webpage. To use it just write <&euro;> where you want to give the sign.

Example: This is a sign of Euro:- <&euro;>.

Result: This is a sign of Euro:- €.

  • <&#8377;> Indian Rupee Sign (₹)
<&#8377;> entity gives Rupee Mark (₹) in HTML. It is a character entity in HTML which is used to give rupee sign (₹) in HTML webpage. To use it just write <&#8377;> where you want to give the sign.

Example: This is a sign of Indian Rupee:- <&#8377;>.

Result: This is a sign of Indian Rupee:- ₹.

  • <&copy;> Copyright (©)
<&copy;> entity gives Copyright Mark (©) in HTML. It is a character entity in HTML which is used to give Copyright sign (©) in HTML webpage. To use it just write <&copy;> where you want to give the sign.

Example: Techzlovr has a copyright<&copy;> .

Result: Techzlovr has a copyright© . 

  • <&reg;> Registered Trademark (®)
<&reg;> entity gives Registered Mark (£) in HTML. It is a character entity in HTML which is used to give Registered Trademark sign (®) in HTML webpage. To use it just write <&reg;> where you want to give the sign.

Example: This is a Registered Trademark Sign:- <&reg;> .

Result: This is a Registered Trademark Sign:- ® .


So, with this our all basic HTML 5 Entities are finished. 

THANKYOU !

You can now SUBSCRIBE us for more information. Just click on ALLOW Button which will pop-up on the screen. SUBSCRIBE NOW! for more information and Get Notified when the new Articles come.


Post a Comment

0 Comments

Ads