HTML codes to put punctuation characters on your Web page
The following list includes the HTML codes for punctuation characters
not in the standard character set. Not all browsers support all the
codes, so be sure to test your HTML codes before you use them.
Some punctuation characters are part of the Unicode character set, so you need to declare that in the head of your documents:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
Display |
Friendly Code |
Numerical Code |
Hex Code |
Description |
|
|
	 |
	 |
Horizontal Tab |
|
|
|
 |
Line Feed |
|
|
  |
  |
Space |
! |
! |
! |
! |
Exclamation Point |
" |
" |
" |
" |
Double Quote |
# |
# |
# |
# |
Number Sign |
& |
& |
& |
& |
Ampersand |
' |
' |
' |
' |
Single Quote |
( |
( |
( |
( |
Left Parenthesis |
) |
) |
) |
) |
Right Parenthesis |
* |
* |
* |
* |
Asterisk (Star) |
, |
, |
, |
, |
Comma |
- |
- |
- |
- |
Hyphen |
. |
. |
. |
. |
Period |
/ |
/ |
/ |
/ |
Forward Slash |
: |
: |
: |
: |
Colon |
; |
; |
; |
; |
Semi-Colon |
? |
? |
? |
? |
Question Mark |
@ |
@ |
@ |
@ |
At Sign |
[ |
[ |
[ |
[ |
Left Square Bracket |
\ |
\ |
\ |
\ |
Back Slash |
] |
] |
] |
] |
Right Square Bracket |
^ |
^ |
^ |
^ |
Caret |
_ |
_ |
_ |
_ |
Underscore |
{ |
{ |
{ |
{ |
Left Curly Brace |
| |
| |
| |
| |
Vertical Bar |
} |
} |
} |
} |
Right Curly Brace |
~ |
˜ |
~ |
~ |
Vertical Bar |
‚ |
‚ |
‚ |
‚ |
Single Low Quote |
„ |
&dbquo; |
„ |
„ |
Double Low Quote |
… |
|
… |
… |
Elipsis |
† |
† |
† |
† |
Dagger |
‡ |
‡ |
‡ |
‡ |
Double Dagger |
‹ |
‹ |
‹ |
‹ |
Left Single Angle Quote |
‘ |
‘ |
‘ |
‘ |
Left Single Quote |
’ |
’ |
’ |
’ |
Right Single Quote |
“ |
“ |
“ |
“ |
Left Double Quote |
” |
” |
” |
” |
Right Double Quote |
• |
|
• |
• |
Small Bullet |
– |
– |
– |
– |
En Dash |
— |
— |
— |
— |
Em Dash |
™ |
™ |
™ |
™ |
Trademark |
› |
› |
› |
› |
Right Single Angle Quote |
|
|
  |
  |
Non-Breaking Space |
¡ |
¡ |
¡ |
¡ |
Inverted Exclamation Point |
¦ |
¦ |
¦ |
¦ |
Broken Vertical Bar |
© |
© |
© |
© |
Copyright |
ª |
ª |
ª |
ª |
Feminine Ordinal Indicator |
« |
« |
« |
« |
Left Angle Quote |
¬ |
¬ |
¬ |
¬ |
Not Sign |
|
­ |
­ |
­ |
Soft Hyphen |
® |
® |
® |
® |
Registered Symbol |
° |
° |
° |
° |
Degree |
² |
² |
² |
² |
Superscript 2 |
³ |
³ |
³ |
³ |
Superscript 3 |
µ |
µ |
µ |
µ |
Micro Sign |
¶ |
¶ |
¶ |
¶ |
Pilcrow (Paragraph Sign) |
· |
· |
· |
· |
Middle Dot |
¹ |
¹ |
¹ |
¹ |
Superscript 1 |
º |
º |
º |
º |
Masculine Ordinal Indicator |
» |
» |
» |
» |
Right Angle Quote |
¿ |
¿ |
¿ |
¿ |
Inverted Question Mark |
℅ |
|
℅ |
℅ |
Care Of |
ⁿ |
|
ⁿ |
ⁿ |
Superscript N |
§ |
§ |
§ |
§ |
Section Mark |
¨ |
¿ |
¿ |
¿ |
Inverted Question Mark |
― |
|
― |
― |
Horizontal Bar |
‣ |
|
‣ |
‣ |
Triangle Bullet |
‾ |
‾ |
‾ |
‾ |
Overline |
‼ |
|
‼ |
‼ |
Double Exclamation Point |
№ |
|
№ |
№ |
Number Word |
Other Character Codes
Note: not all of these characters will display on every browser, be sure to test before you rely on them for your Web site.
Display |
Friendly Code |
Numerical Code |
Hex Code |
Description |
♠ |
♠ |
♠ |
♠ |
Spade card suit |
♣ |
♣ |
♣ |
♣ |
Clubs card suit |
♦ |
♦ |
♦ |
♦ |
Diamonds card suit |
♥ |
♥ |
♥ |
♥ |
Hearts card suit |
← |
← |
← |
← |
Left arrow |
→ |
→ |
→ |
→ |
Right arrow |
↑ |
↑ |
↑ |
↑ |
Up arrow |
↓ |
↓ |
↓ |
↓ |
Down arrow |
♀ |
|
♀ |
♀ |
Female Indicator |
♂ |
|
♂ |
♂ |
Male Indicator |
♩ |
|
♩ |
♩ |
Quarter Note |
♪ |
|
♪ |
♪ |
Eighth Note |
♬ |
|
♬ |
♬ |
Two Eighth Notes |
♭ |
|
♭ |
♭ |
Flat |
♯ |
|
♯ |
♯ |
Sharp |
No comments:
Post a Comment