Special Characters
11/14/25Less than 1 minute
Special Characters
- Special characters such as
<,>,&, ... cannot be used just like that because the browser will interpret them as code - To render these characters literally you must use their entity names
Character entities
| character entity | description |
|---|---|
| & | &; ampersand |
| < | <; less than |
| > | >; greater than |
| | non breaking space |
Non breaking space
- The non breaking space is interesting when you want to layout numbers in a site
- Using
prevents text/numbers to be splitted over multiple lines (if there is not enough horizontal room):
Example: non breaking space
SURF TIP
- Lists of special characters and their entity names: