Symbols that can not be displayed in HTML documents in the usual way are called special characters.
A special character can be displayed only using the corresponding mnemonic or special code.
& Character Mnemonic;
<! - or ->
& # character-code;
Using special characters
The most commonly used special character is an inseparable space (its mnemonics & nbsp; ).
This character is used to control the line break (no automatic line break is possible after this character) and to insert spaces that go to the text in succession (by default, if you insert 5 consecutive spaces in the text, the browser will cut 4 and display only one):
<p> The text below contains six spaces: </ p> <p> The first word is & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; second word </ p>
Also in the HTML code special symbols < (mnemonics < ) and > (mnemonics > ) are often used . These characters can not be used directly in the code, because the browser confuses them with the beginning of the tags.
<p> The text below contains HTML tags: </ p>
& lt; head & gt ;, & lt; p & gt ;, & lt; html & gt;
Mnemonics and codes of frequently used special symbols