HTML Codes for Punctuation and Other Characters

The HTML codes you will need to add special characters to a webpage

Man and Code
Image courtesy Photographer's Choice / Getty Images

There are a number of characters that you may want to use on a website, like ¶ and ©, but these characters do not appear on a standard keyboard. This means that you cannot simply type the characters into your web page and expect them to appear. To use these characters, you must add the codes for them to your site's HTML markup. These commonly used characters are presented on this page.

There are also some special characters that don't really fit into any specific category.

Things like card suits (♠, ♣, ♦, and ♥), arrows (←, →, ↑, and ↓), gender symbols (♀ and ♂), and musical symbols (♩, ♪, ♬, ♭, and ♯) may be needed for certain websites. You can learn how to write these characters on this page as well.

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 web pages before you launch them for the world to see.

Note that some punctuation characters are part of the Unicode character set, so you need to declare that in the head of your document with the meta charset tag:

 

HTML Punctuation Special Characters

DisplayFriendly CodeNumerical CodeHex CodeDescription
    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 website.

DisplayFriendly CodeNumerical CodeHex CodeDescription
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
Format
mla apa chicago
Your Citation
Girard, Jeremy. "HTML Codes for Punctuation and Other Characters." ThoughtCo, Jan. 13, 2018, thoughtco.com/html-codes-punctuation-and-other-characters-4071945. Girard, Jeremy. (2018, January 13). HTML Codes for Punctuation and Other Characters. Retrieved from https://www.thoughtco.com/html-codes-punctuation-and-other-characters-4071945 Girard, Jeremy. "HTML Codes for Punctuation and Other Characters." ThoughtCo. https://www.thoughtco.com/html-codes-punctuation-and-other-characters-4071945 (accessed January 17, 2018).