Typophile

Web type em dashes and curly apostrophes on a website

ejgers0 votes

Can you have em dashes and curly apostrophes on a website in an HTML font?

Thanks,
Lizy

Paper. Printing. Design. Knowledge.
http://edliveshere.com/

You can. There are HTML entities that will provide you with these characters. Em dash, for example, is "& mdash ;" without the spaces. For a good list of entities, see here.

If your website is unicode encoded you can use any character you wish.

Depending on the font of course. The web safe fonts usually lack en space, for example.

Um, I meant en dash…

Same story. Check the links above. I usually just enter them with alt codes (Google search if you're unfamiliar with the term). The alt code for an en–dash is ALT+0150 on Windows keyboards (in America).

Doesn't matter how you enter it, really. So long as your website is, as was pointed out, encoded in Unicode, and the font used has the right glyph, it'll show up okay.

Peace,
JT

Captured from web.archive.org on 31 Jan 2018. view this capture