HTML Tutorial - HTML Entities


Some of the characters are reserved in HTML and XHTML.

The usage of less than (<) and greater than (>) can not be used in html, since the browser will mistake them for html Tags.

For using the less than (<) need to use laternative HTML Entity Name "&lt;" or HTML Entity Number "&#60;".

For using the greater than (>) need to use laternative HTML Entity Name "&gt;" or HTML Entity Number "&#62;".

For putting space in html we need to use the HTML Entity Name "&nbsp;" or HTML Entity Number "&#160;".
How many ever we use space character the browser will take only one space, need to use HTML Entity.

HTML Entity Name and Entity Number


Result Description Entity Name Entity Number
  non-breaking space &nbsp; &#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
¢ cent &cent; &#162;
£ pound &pound; &#163;
¥ yen &yen; &#165;
euro &euro; &#8364;
§ section &sect; &#167;
© copyright &copy; &#169;
® registered trademark &reg; &#174;
trademark &trade; &#8482;