Entity Name and Entity Number in HTML

In this article we describe Entity Name and Entity Number in HTML.
  • 2443

Introduction

In any language some characters are reserved. Some characters are also reserved in HTML which have the same special meaning. These characters are used in HTML with the help of character entities.

we can use reserved characters in two forms

1 Entity Name

2 Entity Number

Explanation of Character Entities

We can not use the greater than (>) or less than(<) sign in HTML coding because the greater than (>) or less than(<) sign will mix with the Tag. We can use these characters in the form of entity name and entity number.

We can display the less than (<) character by

Entity name - &lt;

Entity number - &#60;

Entity name is case sensitive

Some useful Character Entities in HTML  


Characters Description Entity Name Entity Number
> greater-than &gt; &#62;
< less-than &lt; &#60;
& ampersand &amp; &#38;
" quotation mark &quot; &#34;
' apostrophe &apos; &#39;
© 2020 DotNetHeaven. All rights reserved.