Science, Tech, Math › Computer Science HTML Codes for Spanish Language Characters Olé! Use the occasional Spanish character in your HTML Share Flipboard Email Print Pablo Blazquez / Getty Images Science, Tech, Math PHP Programming Perl Python Java Programming Javascript Programming Delphi Programming C & C++ Programming Ruby Programming Visual Basic View More By Jeremy Girard Jeremy Girard Writer New England Institute of Technology Jeremy Girard is an author, educator, and director of marketing/head of web design and development at Envision Technology Advisors. Learn about our Editorial Process Updated on March 08, 2020 Even if your website is written in only one language and does not include multilingual translations, you may need to add Spanish-language characters to the site occasionally. Use the numerical code or hex code for the specific character in your HTML. The chart below includes the HTML codes necessary to use Spanish characters that are not in the standard character set. Older browsers may not support all these codes, but newer browsers should be fine with them, so test your HTML codes before you use them. Some Spanish characters are part of the Unicode character set, so you need to declare that in the head of your documents, as follows: <meta http-equiv="content-type" content="text/html;charset=utf-8" /> HTML Codes for Spanish Language Characters Here are the different Spanish characters you may want to use. Display Friendly Code Numerical Code Hex Codes Description Á Á Á Á Capital A-acute á á á á Lowercase a-acute É É É É Capital E-acute é é é é Lowercase e-acute Í Í Í Í Capital I-acute í í í í Lowercase i-acute Ñ Ñ Ñ Ñ Capital N-tilde ñ ñ ñ ñ Lowercase n-tilde Ó Ó Ó Ó Capital O-acute ó ó ó ó Lowercase o-acute Ú Ú Ú Ú Capital U-acute ú ú ú ú Lowercase u-acute Ü Ü Ü Ü Capital U-umlaut ü ü ü ü Lowercase u-umlaut « « « « Left angle quotes » » » » Right angle quotes ¿ ¿ ¿ ¿ Inverted question mark ¡ ¡ ¡ ¡ Inverted exclamation point € € € € Euro ₧ ₧ ₧ Peseta How to Use the Spanish HTML Codes In the HTML markup, place these special character codes where you want the Spanish character to appear. These are used similarly to other HTML special character codes that allow you to add characters that are not found on keyboards and therefore cannot be typed into the HTML to display on a web page. These characters codes may be used on an English-language website if you need to display words such as piñata and piña colada. They also work in HTML that displays full Spanish translations, whether you code those web pages by hand and have a full Spanish version of the site or you use an automated approach to multilingual web pages and go with a solution such as Google Translate. Cite this Article Format mla apa chicago Your Citation Girard, Jeremy. "HTML Codes for Spanish Language Characters." ThoughtCo, Sep. 30, 2021, thoughtco.com/html-codes-spanish-characters-4062194. Girard, Jeremy. (2021, September 30). HTML Codes for Spanish Language Characters. Retrieved from https://www.thoughtco.com/html-codes-spanish-characters-4062194 Girard, Jeremy. "HTML Codes for Spanish Language Characters." ThoughtCo. https://www.thoughtco.com/html-codes-spanish-characters-4062194 (accessed March 21, 2023). copy citation 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