Entities in HTML

·

1 min read

&entity_name; in html

Entities are the special character in html. Suppose we want to use < or > or this symbol in our code then our program confused that which symbol is used for tags and which is used as greater than or less than sign. So, we must write < and > or < and >. A character entity looks like this : &entity_name; OR &#entity_number;

A commonly used html entity are non breaking space (&nbps;) it is used for add space between two words.

Some of the html entities are:

\> © < " ' &