How to Type ħ (H 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 Maltese.
ħ on HTML: ħ
Ħ on HTML: Ħ
Or copy it:
Method 1: Codes for web pages
| Format | Code for ħ |
|---|---|
| Decimal entity | ħ |
| Hex entity | ħ |
| CSS content | content: "\0127"; |
| JavaScript | "\u0127" |
| URL encoded | %C4%A7 |
| UTF-8 bytes | C4 A7 |
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 h 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: "\0126"; |
| JavaScript | "\u0126" |
| URL encoded | %C4%A6 |
| UTF-8 bytes | C4 A6 |
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+0127, named LATIN SMALL LETTER H WITH STROKE. It is used in Maltese. 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+0127. In HTML it is ħ.
Related guides
- How to Type ħ (H with stroke) on Windows
- How to Type ħ (H with stroke) on Mac
- How to Type ħ (H with stroke) on iPhone
- How to Type ħ (H with stroke) on Android
- How to Type ħ (H with stroke) on Microsoft Word
- How to Type ħ (H with stroke) on Google Docs
- How to Type ģ (G with cedilla) on HTML
- How to Type ĥ (H with circumflex) on HTML
- How to Type ĩ (I with tilde) on HTML
- How to Type į (I with ogonek) on HTML