Entities
- Reserved characters in HTML must be replaced with character entities.
- Eg
<
and>
are reserved characters
Character Entities
Using name
&entity_name;
Using number
&#entity_number;
Examples
Display <
<
<
Display pound
£
£
Display Copyright
©
©
Display Registered Trademark
®
®
Non-breaking Space
- Two words separated by a non-breaking space will stick together not break into a new line. This is useful when breaking the words might be disruptive.
- Prevent browsers from truncating spaces in HTML pages.