Special characters
The Unicode characters worth knowing, from the narrow no-break space to the minus sign, ready to copy as HTML, CSS or JS.
| Char | Name | Unicode | HTML | CSS | JS |
|---|---|---|---|---|---|
| No-break spaceKeeps 10 km on one line. | |||||
| Narrow no-break spaceA thinner nbsp, for 10 000 or the space before ! in French. | |||||
| Thin spaceAround a slash or between initials. | |||||
| Hair spaceThe thinnest visible space. | |||||
| En spaceHalf an em wide. | |||||
| Em spaceAs wide as the font size. | |||||
| Figure spaceAs wide as a digit, to line up numbers. | |||||
| Punctuation spaceAs wide as a period. | |||||
| Zero-width spaceAllows a line break without showing anything, like <wbr>. | |||||
| Word joinerPrevents a line break, without adding width. | |||||
| Soft hyphenShows a hyphen only when the word breaks there. | |||||
| Zero-width joinerGlues emoji together, like 👩💻. | |||||
| Zero-width non-joinerStops letters from joining or forming a ligature. | |||||
| Left-to-right mark | |||||
| Right-to-left mark | |||||
| Byte order markThe usual suspect when a file starts with a mystery character. | |||||
| HyphenThe typographic hyphen, the key on your keyboard is a hyphen-minus. | |||||
| Non-breaking hyphenKeeps e-mail on one line. | |||||
| Figure dashAs wide as a digit, for phone numbers. | |||||
| En dashFor ranges, like 10–20. | |||||
| Em dashFor a break in a sentence. | |||||
| Minus signLines up with +, and screen readers say minus. | |||||
| Horizontal barIntroduces a quote in some languages. | |||||
| Left single quote | |||||
| Right single quoteAlso the proper apostrophe. | |||||
| Left double quote | |||||
| Right double quote | |||||
| Low single quote | |||||
| Low double quoteOpening quote in Dutch and German. | |||||
| Single guillemet left | |||||
| Single guillemet right | |||||
| Guillemet left | |||||
| Guillemet right | |||||
| PrimeFor feet and minutes, not a quote. | |||||
| Double primeFor inches and seconds. | |||||
| Ellipsis | |||||
| Middle dot | |||||
| Bullet | |||||
| Triangular bullet | |||||
| Pilcrow | |||||
| Section sign | |||||
| Dagger | |||||
| Double dagger | |||||
| Reference mark | |||||
| Multiplication signFor 1920×1080, not the letter x. | |||||
| Division sign | |||||
| Plus-minus | |||||
| Almost equal | |||||
| Not equal | |||||
| Less than or equal | |||||
| Greater than or equal | |||||
| Infinity | |||||
| Degree | |||||
| Superscript two | |||||
| Superscript three | |||||
| One half | |||||
| One quarter | |||||
| Three quarters | |||||
| Copyright | |||||
| Registered | |||||
| Trade mark | |||||
| Euro | |||||
| Pound | |||||
| Yen | |||||
| Cent | |||||
| Check mark | |||||
| Ballot X | |||||
| Black star | |||||
| White star | |||||
| Left arrow | |||||
| Right arrow | |||||
| Up arrow | |||||
| Down arrow | |||||
| North east arrowOften used for external links. | |||||
| Command key | |||||
| Option key | |||||
| Shift key | |||||
| Control key | |||||
| Tab key | |||||
| Return key | |||||
| Delete key | |||||
| Escape key |
Good to know
- Click any cell to copy it. The first column copies the character itself, handy for the invisible ones.
- With a UTF-8 page you can paste the character straight into your HTML. The entity is only needed for the invisible ones, so the next person can see they are there.
- In CSS
content, end the escape with a space when a letter or digit follows, like"\00A0 km", or it reads them as part of the code. - Spaces look the same in a text editor. Turn on rendering of whitespace, or search for the code point, when a layout does not break where you expect.