HTML Entities | Lesson 27 HTML Tutorial
HTML ENTITIES IMAGE

HTML Entities | Lesson 27 HTML Tutorial

The entities in html are like the signs but with number of small abbr, so when dealing with entities like copy write and euro sign or so on we use the entities.

For More Visual Explain! Take This Video:

HTML Entities Video

HTML Entities

Some characters are reserved in HTML for special purpose. If you use the copyright or less than (<) or greater than (>) signs in your text, the browser might mix them with tags. So the safest way is to use the entities number of common names to display reserved characters in HTML.

Character Entity Example:

&entity_name;
OR
&#entity_number; 

Note: To display a less than sign (<) we must write: < or <

Non-breaking Space

A common character entity used in HTML is the non-breaking space:   which is used to create space in the horizontal line.

Example:

<p>Hello guys     How are You </p>

Result: Hello guys How are Your

Some Common Character Entities in This Table:

ResultDescriptionEntity NameEntity Number
non-breaking space&nbsp;&#160;
<less than&lt;&#60;
>greater than&gt;&#62;
&ampersand&amp;&#38;
double quotation mark &quot;&#34;
single quotation mark (apostrophe) &apos;&#39;
¢cent&cent;&#162;
£pound&pound;&#163;
¥yen&yen;&#165;
euro&euro;&#8364;
©copyright&copy;&#169;
®registered trademark&reg;&#174;

#Focus: These entities code is case sensitive so when dealing with these entities take care of code character case.



This post is one of the HTML5 for deep understanding course. where we will learn every common elements from basic to the advanced element.

In addition each lesson has a video which you could visit and watch for more practicing and for deep understanding.

We hope that we could give the best for you and for the deep and easy understanding.

You could follow the series from our website SAFHATECH.com and go to categories and then programming and then Choose the course you want then just click next post to go step by step.

Finally we hope every thing is works as you suspect.


Consequently You could follow us at :

Website URL: https://www.safhatech.com/

Youtube: https://www.youtube.com/channel/UCIVzh6iykNowNcOUT5Gfasw

Twitter: http:// https://twitter.com/safhatech

Instegram: https://www.instagram.com/safhatech

Facebook: http:// https://www.facebook.com/Safhatech-487171875443687

Phone:967772223681

Reference: w3school.com

Leave a Reply