HTML Entities | Front End development

HTML Entities

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



HTML Entities

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 &lt;p&gt; handsome </p>
</body>

Rohan is very

handsome

Rohan is very <p> handsome

So in the above example we see that &lt; and &gt is used instead of “<“, “>” to show <p>

Special Characters in HTML

<p> pound is written like &pound; </p>
<p> copyright is written like &copy; </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.


IPhone 13 pro features, display, price is not better ?


Topic Covered Previously


Leave a Comment

Your email address will not be published.

Tech Info