The Mudcat Café TM
Thread #12759   Message #3056165
Posted By: JohnInKansas
18-Dec-10 - 02:24 AM
Thread Name: HTML Practice Thread
Subject: RE: HTML Practice Thread
Joe - re quotes & apostrophes

The HTML specification uses straight quotes to mark "strings" of characters that don't require interpretation, and "curly quotes" don't work universally in code, although a few sites have added interpreters to read them in code.

Since it mucks up the code, it's best to "turn off curly quotes" in your Word, which turns them off in all your Office programs. When you turn them on/off for quotes, they're also turned on/off for apostrophes.

It's handy to know that in Word, if curly quotes are turned on or off, you can Edit|Replace Replace All " with " and all the quotes will be changed to whatever's the current setting. (i.e. Word Replace recognizes both forms, and replaces with whatevers the current setting.) You have to separately replace ' with ' if you want them changed also.

The straight double quote is hex code 0022, so " should print it, but it gets cumbersome to code all of them in codes, so it's better to set up to type them "straight."

Straight Single Quote can be coded '      '
Straight Double Quote can be coded &0022;        "
Left Single Quote can be coded ‘          ‘
Right Single Quote can be coded ’        ’
Left Double Quote can be coded “        “
Right Double Quote can be coded ”       ”


Of course you can convert the hex numbers to their decimal equivalents and leave out the "x" in the codes, but I'm too lazy to work the conversions at the moment.

You can also use "curlies" in preformatted text with <pre> in front of the text and </pre> at the end, and they should come across in a post, although using the preformat tag can also get clumsy.

John