Web type em dashes and curly apostrophes on a website

ejgers
19.Aug.2008 8.21am
ejgers's picture

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

Thanks,
Lizy

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



radhruin
19.Aug.2008 8.39am
radhruin's picture

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.


Ralf Herrmann
19.Aug.2008 8.44am
Ralf Herrmann's picture

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


Grot Esqué
19.Aug.2008 9.58am
Grot Esqué's picture

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


Ricardo Cordoba
19.Aug.2008 3.09pm
Ricardo Cordoba's picture

Grot Esqué
21.Aug.2008 11.14am
Grot Esqué's picture

Um, I meant en dash…


jt_the_ninja
21.Aug.2008 11.25am
jt_the_ninja's picture

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