How to Type á (A with acute) on HTML
The letter á does not have its own key on an English keyboard, but HTML still makes it easy to type. Use á, or pick one of the other methods in this guide. á appears in Spanish, Portuguese, Czech and Slovak.
á on HTML: á
Á on HTML: Á
Or copy it:
Method 1: Codes for web pages
| Format | Code for á |
|---|---|
| Named entity | á |
| Decimal entity | á |
| Hex entity | á |
| CSS content | content: "\00E1"; |
| JavaScript | "\u00E1" |
| URL encoded | %C3%A1 |
| UTF-8 bytes | C3 A1 |
Method 2: Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste á straight into the HTML. Entities are only needed when your editor or database cannot store the character.
Method 3: Watch for normalization
á can also be written as a plus a combining mark. Both look the same but compare as different strings. In JavaScript, call str.normalize("NFC") before comparing or searching.
How to type the capital Á
The uppercase form works the same way with Shift added where a letter is typed.
Codes for web pages
| Format | Code for Á |
|---|---|
| Named entity | Á |
| Decimal entity | Á |
| Hex entity | Á |
| CSS content | content: "\00C1"; |
| JavaScript | "\u00C1" |
| URL encoded | %C3%81 |
| UTF-8 bytes | C3 81 |
Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste Á straight into the HTML. Entities are only needed when your editor or database cannot store the character.
About the letter á
á is Unicode U+00E1, named LATIN SMALL LETTER A WITH ACUTE. It is used in Spanish, Portuguese, Czech, Slovak, Hungarian, Icelandic, Dutch and Welsh. A short line slanting up to the right. It marks stress in Spanish (canción), a closed vowel in French (été), vowel length in Czech, Hungarian and Irish, and a rising tone in Vietnamese and Pinyin. See the á character page for every code and shortcut.
Troubleshooting
- If you see à and other symbols, the file is UTF-8 but the browser reads it as Windows-1252. Add the meta charset tag.
- Named entities are case sensitive: É and é are different letters.
- In XML and XHTML only five named entities exist, so use numeric codes there.
Frequently asked questions
What is the shortcut for á on HTML?
á.
Can I just copy and paste á?
Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.
What is the Unicode code for á?
U+00E1. In HTML it is á.
Related guides
- How to Type á (A with acute) on Windows
- How to Type á (A with acute) on Mac
- How to Type á (A with acute) on iPhone
- How to Type á (A with acute) on Android
- How to Type á (A with acute) on Microsoft Word
- How to Type á (A with acute) on Google Docs
- How to Type í (I with acute) on HTML
- How to Type ú (U with acute) on HTML
- How to Type ü (U with umlaut) on HTML
- How to Type à (A with grave) on HTML