|
-
Dec 27th, 2001, 10:54 AM
#1
Thread Starter
Hyperactive Member
Quotes in HTML string
Hi,
We are in the process of rewritting several ASP scripts to make them browser insensitive. Most were written with IE in mind.
The question of quotes came up. e.g.
Code:
<body bgcolor="#d0d0d0" text="#000000">
<form name="call_work" method="post">
<TABLE BORDER="1" CELLSPACING="5" width="100%">
Etc...
Questions:
Will most browsers recognise a single quote in place of the regular quote?
Which common browsers require quotes?
Thanks,
Al.
A computer is a tool, not a toy.
-
Dec 27th, 2001, 11:17 AM
#2
Frenzied Member
Do to the nature of HTML/XML, you should be able to use single quotes or double quotes. The browsers should not care. But you should be consistent throughout the entire document. I believe it is best practice to use double quotes, as you will find the need to quote things within your quotes.
Code:
<tag attrib="value" onMethod="Function('value');">
For the sake of arguement, check the W3C.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 27th, 2001, 11:23 AM
#3
last i read, XHTML standard dictates double quotes
-
Dec 27th, 2001, 11:35 AM
#4
Black Cat
XML also requires double quotes.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|