I suppose the real question is what does an html string look like because
after all, you don't need ANY quotes around the string is it doesn't have
any whitespace such as a font color.  As the string with whitespace, I
believe either type of quote will do.

-mark

Philip Mak wrote:

> I've seen the following programming style used before, for perl code
> that prints HTML:
>
>         print "<font color='red'>ERROR!</font>";
>
> instead of:
>
>         print "<font color=\"red\">ERROR!</font>";
>
> Using the single quotes for the quotes in HTML allows for cleaner
> syntax in perl, since then \" or qq{} is not required.
>
> Does anyone know if there is a disadvantage of using single quotes in
> HTML (e.g. compatibility issues somewhere? I'm not sure because almost
> everyone only uses double quotes in HTML).
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to