# 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
&amp; &; ampersand
&lt; <; less than
&gt; >; greater than
&nbsp; non breaking space

# Non breaking space

  • The non breaking space is interesting when you want to layout numbers in a site
  • Using &nbsp; prevents text/numbers to be splitted over multiple lines (if there is not enough horizontal room):

# Example: non breaking space

SURF TIP

Last Updated: 10/6/2020, 11:29:20 PM