Displaying Special Characters

Some text for display cannot be entered directly into an HTML document - such as & or £.

Instead these symbols must be entered using CHARACTER ENTITIES.

A character entity has three parts:

  1. an ampersand (&)
  2. an entity name or a # and an entity number
  3. a semicolon (;).

For example:

To display < in a web page when it is not meant to be part of the markup, you must use &lt;

To display > in a web page when it is not meant to be part of the markup, you must use &gt;

To display " in a web page when it is not meant to be part of the markup, you must use &quot;

Common Character Entities:

Symbol Meaning Character Entity
< less than &lt;
> greater than &gt;
& ampersand &amp
" quotation marks &quot;
¢ cent &cent;
£ pound &pound;
© copyright &copy;
® registered trademark &reg;

WordPress CMS and Blog Themes from £19.95