5.5: Special Characters
- Page ID
- 93812
The previous font settings can be paired with other style sheet properties to apply additional formatting to strings of text. The following table lists these properties that can bring more variety to text displays. Some of the properties pertain to styling the font itself, while others pertain to the structural arrangement of text within its container.
Display Character | Name | Code | Description |
---|---|---|---|
" | " |
" |
Quote |
& | & |
& |
Ampersand |
' | ' |
Apostrophe | |
< | < |
< |
Less than |
> | > |
> |
Greater than |
™ | ™ |
™ |
Trademark |
|
  |
Non-breaking space | |
¢ | ¢ |
  |
Cents |
¦ | ¦ |
¦ |
Broken vertical bar |
§ | § |
§ |
Section |
© | © |
© |
Copyright |
« | « |
« |
Left angle quote |
» | » |
» |
Right angle quote |
¬ | ¬ |
¬ |
Not sign |
® | ® |
® |
Registered trademark |
° | ° |
° |
Degree |
± | ± |
± |
Plus/minus |
¶ | ¶ |
¶ |
Paragraph |
· | · |
· |
Middle dot |
• | • |
• |
Bullet |
¼ | ¼ |
¼ |
Fraction one-quarter |
½ | ½ |
½ |
Fraction one-half |
¾ | ¾ |
¾ |
Fraction three-quarters |
÷ | ÷ |
÷ |
Division |
× | × |
× |
Multiplication |
ø | ø |
ø |
Small o-slash |
Ø | Ø |
Ø |
Large O-slash |
– | – |
En dash | |
— | — |
Em dash |
As an example of using these special characters, the following code leaves five spaces between words by using non-breaking space ( ) and bullet (•) characters between them.
Displaying HTML
If you need to display HTML tags as part of the text on a Web page, you cannot type "<" and ">" symbols. These characters are interpreted by the browser as enclosing HTML tags and would be treated as such. Instead, you must use the special HTML characters "<" and ">" to display these symbols. Assume that you wish to display the following HTML code on a Web page.
The above output needs to be entered in the text editor using special characters in place of < and > symbols as shown below:
Styling Character Codes
You should note that the special character codes can have styles applied to them just as other alphanumeric characters. For example, the following equation is displayed in 1.8em bold Courier New font.