Science, Tech, Math › Computer Science HTML Code for Common Symbols Use HTML codes to ensure accuracy between web coding and web rendering Share Flipboard Email Print jayk7 / Getty Images Science, Tech, Math PHP Programming Perl Python Java Programming Javascript Programming Delphi Programming C & C++ Programming Ruby Programming Visual Basic View More Table of Contents Expand Symbols and Punctuation Numerals Unaccented Letters Accented Letters By Linda Roeder Linda Roeder Writer Alvernia College Strayer University Linda Roeder is a longtime web enthusiast and consultant with a broad knowledge of how personal web pages, blogs, and social networking. Learn about our Editorial Process Updated on January 06, 2020 HTML uses special codes to support content for common symbols not found on keyboards, as well as in situations where the symbol itself serves a dual purpose in HTML as both a control character and a display character. To add a letter, number, or special symbol to the displayed text of a webpage, use either the HTML number or the HTML name of the symbol. For example, one way to display the text ¡Buenos días! using HTML codes is: ¡Buenos días This approach isn't easily parsed by human eyes in the HTML source document, but you're guaranteed that the result will render correctly on the page, whereas merely pasting the already-formatted text may not. Notice that these codes begin with an ampersand? In strictly compliant HTML, instead of writing something like Jane likes the bed & breakfast you'd instead write: Jane likes the bed & breakfast or Jane likes the bed & breakfast This practice avoids confusion related to the use of a raw ampersand within the HTML document. In the tables that follow, you'll see that every entry features an HTML number and a subset feature an HTML name. Either the name or the number works. Some commonly used symbols use an easier-to-remember name to facilitate HTML development—remembering & is easier for most web developers than remembering &. HTML Codes for Symbols and Punctuation The most commonly used HTML codes relate to symbols and punctuation: SymbolHTML NumberHTML NameCommon Name   space!! exclamation point"""double quotes## number sign$$ dollar sign%% percent sign&&&ampersand'' single quote(( opening parenthesis)) closing parenthesis** asterisk++ plus sign,, comma-- minus sign - hyphen.. period// slash:: colon;; semicolon<<<less than sign== equal sign>>>greater than sign?? question mark@@ at symbol[[ opening bracket\\ backslash]] closing bracket^^ caret - circumflex__ underscore`` grave accent{{ opening brace|| vertical bar}} closing brace~~ equivalency sign - tilde   non-breaking space¡¡¡inverted exclamation mark¢¢¢cent sign£££pound sign¤¤¤currency sign¥¥¥yen sign¦¦¦broken vertical bar§§§section sign¨¨¨spacing diaeresis - umlaut©©©copyright signªªªfeminine ordinal indicator«««left double angle quotes¬¬¬not sign­­soft hyphen®®®registered trade mark sign¯¯¯spacing macron - overline°°°degree sign±±±plus-or-minus sign²²²superscript two - squared³³³superscript three - cubed´´´acute accent - spacing acuteµµµmicro sign¶¶¶pilcrow sign - paragraph sign···middle dot - Georgian comma¸¸¸spacing cedilla¹¹¹superscript oneºººmasculine ordinal indicator»»»right double angle quotes¼¼¼fraction one quarter½½½fraction one half¾¾¾fraction three quarters¿¿¿inverted question mark×××multiplication sign÷÷÷division sign HTML Codes for Numerals HTML supports codes for most of the common Latin symbols, including figures and letters. You'd use an HTML code for a numeral when you're displaying the number-as-number on the page and not part of a formula. SymbolHTML NumberHTML NameCommon Name00 zero11 one22 two33 three44 four55 five66 six77 seven88 eight99 nine HTML Codes for Unaccented Letters The standard upper-case and lower-case letters also map to HTML numbers, and you'd use them in similar circumstances as for numerals. LetterHTML NumberAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZaabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz HTML Codes for Accented Letters Codes for accented letters get more use because there's no guarantee that embedding the actual symbol within a page will display correctly. Because HTML source code is parsed by a browser before it's displayed, and because individual viewers of the webpage may use different fonts and encoding schemes depending on the default language of their browser, the best way to ensure accurate reproduction of these accented letters is to rely on the HTML number or the HTML name. SymbolHTML NumberHTML NameCommon NameÀÀÀlatin capital letter A with graveÁÁÁlatin capital letter A with acuteÂÂÂlatin capital letter A with circumflexÃÃÃlatin capital letter A with tildeÄÄÄlatin capital letter A with diaeresisÅÅÅlatin capital letter A with ring aboveÆÆÆlatin capital letter AEÇÇÇlatin capital letter C with cedillaÈÈÈlatin capital letter E with graveÉÉÉlatin capital letter E with acuteÊÊÊlatin capital letter E with circumflexËËËlatin capital letter E with diaeresisÌÌÌlatin capital letter I with graveÍÍÍlatin capital letter I with acuteÎÎÎlatin capital letter I with circumflexÏÏÏlatin capital letter I with diaeresisÐÐÐlatin capital letter ETHÑÑÑlatin capital letter N with tildeÒÒÒlatin capital letter O with graveÓÓÓlatin capital letter O with acuteÔÔÔlatin capital letter O with circumflexÕÕÕlatin capital letter O with tildeÖÖÖlatin capital letter O with diaeresisØØØlatin capital letter O with slashÙÙÙlatin capital letter U with graveÚÚÚlatin capital letter U with acuteÛÛÛlatin capital letter U with circumflexÜÜÜlatin capital letter U with diaeresisÝÝÝlatin capital letter Y with acuteÞÞÞlatin capital letter THORNßßßlatin small letter sharp s - ess-zedàààlatin small letter a with graveááálatin small letter a with acuteâââlatin small letter a with circumflexãããlatin small letter a with tildeääälatin small letter a with diaeresisååålatin small letter a with ring aboveææælatin small letter aeçççlatin small letter c with cedillaèèèlatin small letter e with graveééélatin small letter e with acuteêêêlatin small letter e with circumflexëëëlatin small letter e with diaeresisìììlatin small letter i with graveííílatin small letter i with acuteîîîlatin small letter i with circumflexïïïlatin small letter i with diaeresisðððlatin small letter ethñññlatin small letter n with tildeòòòlatin small letter o with graveóóólatin small letter o with acuteôôôlatin small letter o with circumflexõõõlatin small letter o with tildeööölatin small letter o with diaeresisøøølatin small letter o with slashùùùlatin small letter u with graveúúúlatin small letter u with acuteûûûlatin small letter u with circumflexüüülatin small letter u with diaeresisýýýlatin small letter y with acuteþþþlatin small letter thornÿÿÿlatin small letter y with diaeresisŒŒ latin capital letter OEœœ latin small letter oeŠŠ latin capital letter S with caronšš latin small letter s with caronŸŸ latin capital letter Y with diaeresisƒƒ latin small f with hook - function Cite this Article Format mla apa chicago Your Citation Roeder, Linda. "HTML Code for Common Symbols." ThoughtCo, Nov. 18, 2021, thoughtco.com/html-code-for-common-symbols-and-signs-2654021. Roeder, Linda. (2021, November 18). HTML Code for Common Symbols. Retrieved from https://www.thoughtco.com/html-code-for-common-symbols-and-signs-2654021 Roeder, Linda. "HTML Code for Common Symbols." ThoughtCo. https://www.thoughtco.com/html-code-for-common-symbols-and-signs-2654021 (accessed March 20, 2023). copy citation Featured Video By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies