This is the Ninth part of the HTML course for front-end web development. Starting with HTML is like making a skeleton of a website. and today we will learn, HTML Entities. Non-breaking Space, Character, html entities list html entities example entities in html learn html entities what is html entities html entities reference
In HTML, several characters are reserved. The browser may mix less than (<) and larger than (>) signs with tags if you use them in your content.
In HTML, reserved characters are displayed using character entities.
Lets take an example,
Let say I want to display a sentence ” Rohan is very <p> handsome” here <p> can’t be display. Cause it acts as a html tag and hence to overcome this we use HTML entities.
<body> <p> Rohan is very <p> handsome </P> <p> Rohan is very <p> handsome </p> </body>
Rohan is very
Rohan is very <p> handsome
So in the above example we see that < and > is used instead of “<“, “>” to show <p>
Special Characters in HTML
<p> pound is written like £ </p> <p> copyright is written like © </p>
pound is written like £
copyright is written like ©
Hey! You don’t need to mug up everything just understand what is their in HTML else everything is available in internet. Even you don’t need to learn entities as the more you practice ahead the more you know.
here are the list of all html entities.
Topic Covered Previously
- Boilerplate of HTML used for web development
- HTML head and tag?
- How to add and link image to other page in HTML
- How to create tables in HTML | Web Development
- To create list in HTML, Ordered and unordered
- HTML Forms | Create forms in HTML
- Inline and Block elements in HTML
- ID and Class in HTML | Front End development