Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 HTML Articles

Some characters in HTML have to be represented in a special way. This is because as part of the language the character is used with a special purpose. Also to represent non-standard keyboard characters a special code may be used.

As an example the less than sign (<) which is used throughout HTML as the opening part of a tag definition=, needs to be represented in a different way.These are called character entities.

A character entity comprises three parts; an ampersand (&), an entity name, and finally a semicolon (;). To display a less than sign in an HTML document we must write: < Note that the entities are case sensitive.

Probably the most commonly used character entity is the non-breaking space. In HTML multiple spaces are realised as a single space. Therefore, to represent two or more spaces together we must take a different approac, the non-breaking space.

Commonly used character entities

Code Description Result
&nbsp; Non-breaking space  
&lt; Less than <
&gt; Greater than >
&amp; Ampersand &
&quot; Quotation mark "
&rsquo; Apostrophe 
&cent; Cent ¢
&pound; Pound £
&yen; Yen ¥
&sect; Section §
&copy; Copyright ©
&trade; Trademark
&reg; Registered trademark ®
&times; Multiplication ×
&divide; Division ÷

NAT July 2005 (Revised)


This article viewed: 1281 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Tuesday, May 13, 2008