Re: XHTML tag attribute quoting (Was Re: Forms in PHP)
| From: | Erik Price | Date: | Mon, 15 Apr 2002 13:07:03 +0000 |
| Subject: | Re: XHTML tag attribute quoting (Was Re: Forms in PHP) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92990@lists.php.net to get a copy of this message | ||
On Friday, April 12, 2002, at 07:41 PM, Andrew Chase wrote:
Are single quotes valid around tag attributes in XHTML? I skimmed over the W3C XHTML 1.0 spec before posting the previous message and got the impression all attributes had to be double quoted. It would be great if single quotes were valid, since I've fallen into the habit of using them for the same exact reason this thread got started... easier to read and faster to type than \" :)You are correct, single quotes are valid around tag attributes and thus may contain doublequotes (and vice versa). To the best of my knowledge, the following is fine XML/XHTML: <select class='uppercontent' multiple="multiple" name="beefcake"> ... </select> Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com