# 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:
- https://dev.w3.org/html5/html-author/charref
- http://unicode-table.com/en/
<p>Rightwards Arrow (symbol): →</p> <p>Leftwards Arrow (HTML-entity): ←</p>