Quotes

This page contains some different ways of putting things in quotes in HTML followed by results of testing the methods in various browsers.

The way I've always done it is to use the entity " for double quotes and the hash mark for single quotes.

"And then the Trekkie said to me, 'Live long and prosper.'"

Another way is to use the <q> tag along with some style information to convert the inner quotes to single quotes.

And then the Trekkie said to me, Live long and prosper.

A tedious way to be confident it will work is to use the following entities: &#8220;, &#8221;, &#8216;, and &#8217;.

“And then the Trekkie said to me, ‘Live long and prosper.’”

Now for the results:

Method: &quot; <q> &#8220;
Mac OS X 10.2.3
Safari 1.0 beta (v60) not curly no quote marks correct
Chimera 0.6 not curly curly, but incorrect single quotes correct
Internet Explorer 5.2.2 not curly not curly correct