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
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:
Result | Description | Entity Name | Entity Number |
---|---|---|---|
non-breaking space | |   | |
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
“ | double quotation mark | " | " |
‘ | single quotation mark (apostrophe) | ' | ' |
¢ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¥ | yen | ¥ | ¥ |
€ | euro | € | € |
© | copyright | © | © |
® | registered trademark | ® | ® |
#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