In HTML there are special characters that are reserved for use in an html document. To be able to have these characters display in your webpage rather than processed by the browser, you have to encode them into their entity equivalents. For example the character > would become >. There are 252 character references and 1,114,050 numeric references.
Character entities are used to display reserved characters in HTML such as "<" , ">" ,"&" ....