|
|
Sometimes we need to add some special characters like a copyright
© sympbol or signs like <, $, & and so on. These special
characters are called HTML entities. In this Lesson we will show you
how you can add these HTML entities to your web pages.
An HTML entity has three parts: an ampersand (&), an entity
name or a # and an entity number, and finally a semicolon (;).
For example if we need to display a less than (<) sign in our
web page, we will write: < or <
A question arises: What is the difference between the entity name
and the entity number? The answer is very simple; Traditionaly HTML
used to support entity numbers and later the capability of entity
names was also added. Most web designers feel comfortable with the
entity names as they are easier to remember.
Some commonly used HTML
Entities
| Entity |
Description |
Name |
Number |
| |
non-breaking space |
|
  |
| < |
less than |
< |
< |
| > |
greater than |
> |
> |
| & |
ampersand |
& |
& |
| " |
quotation mark |
" |
" |
| ¢ |
cent |
¢ |
¢ |
| £ |
pound |
£ |
£ |
| ¥ |
yen |
¥ |
¥ |
| € |
euro |
€ |
€ |
| § |
section |
§ |
§ |
| © |
copyright |
© |
© |
| ® |
registered trademark |
® |
® |
| × |
multiplication |
× |
× |
| ÷ |
division |
÷ |
÷ |
Next >>> Lesson No. 16: HTML Tables
|
|