How to Type đ (D with stroke) 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 Croatian and Vietnamese.
đ on HTML: đ
Đ on HTML: Đ
Or copy it:
Method 1: Codes for web pages
| Format | Code for đ |
|---|---|
| Decimal entity | đ |
| Hex entity | đ |
| CSS content | content: "\0111"; |
| JavaScript | "\u0111" |
| URL encoded | %C4%91 |
| UTF-8 bytes | C4 91 |
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 d 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 Đ |
|---|---|
| Decimal entity | Đ |
| Hex entity | Đ |
| CSS content | content: "\0110"; |
| JavaScript | "\u0110" |
| URL encoded | %C4%90 |
| UTF-8 bytes | C4 90 |
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+0111, named LATIN SMALL LETTER D WITH STROKE. It is used in Croatian and Vietnamese. A line through the letter itself. Examples are ø (Danish, Norwegian), ł (Polish), đ (Vietnamese, Croatian) and ħ (Maltese). 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+0111. In HTML it is đ.
Related guides
- How to Type đ (D with stroke) on Windows
- How to Type đ (D with stroke) on Mac
- How to Type đ (D with stroke) on iPhone
- How to Type đ (D with stroke) on Android
- How to Type đ (D with stroke) on Microsoft Word
- How to Type đ (D with stroke) on Google Docs
- How to Type ć (C with acute) on HTML
- How to Type ď (D with caron) on HTML
- How to Type ę (E with ogonek) on HTML
- How to Type ě (E with caron) on HTML