Home Advertise with us Forum Articles Sitemap Contact

HTML Entities

There are certain characters known as reserved characters in HTML that are not supported by the keyboard or the document’s character encoding. For example, characters like, greater than or less than sign cannot be used within the text as they may be mistaken by the browser as being markup sign.

All such reserved characters can be used only by inserting character entities within the HTML source. A character entity can be represented as     &entity_name or       &# entity_number .

Although most people prefer using the entity name instead of the entity number because of the ease of remembering an entity name, a disadvantage of using entity names is that not every browser supports all entity names.
The earlier tutorials have indicated the fact that, browsers can recognize only one space between words within a heading or paragraph. It truncates all the other spaces that you may have mentioned. In order to have additional spaces created in your text, use the &nbsp character entity. One important thing to note about the names of entities is that, these are case sensitive, so they should necessarily be written in the lower case only.

Here is a List of Some Commonly Used Character Entities

Result Description Entity Name Entity Number
  non-breaking space    
< 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;

HTML Tip 1

Use only hexadecimal #RGB values for colors. The behavior of named colors is browser-idiosyncratic and totally unpredictable.

HTML Tip 2

You can resize your images without a graphics program by changing the HEIGHT and WIDTH in your image tag.