RE: [PHP] Problem with HTML Text box and PHP variable.

From: Date: Fri, 12 Sep 2003 12:05:42 +0000
Subject: RE: [PHP] Problem with HTML Text box and PHP variable.
Groups: php.general 
Request: Send a blank email to php-general+get-162414@lists.php.net to get a copy of this message
[snip] >>Use double quotes for HTML attributes. > > Why do you say that? Yeah, I figured someone would ask that. :) I couldn't find anything definitive on w3c.org; can someone back me up? AFAIK, they are required in XML and XHTML. It's a good habit to get into with regular HTML, also (although, yes, both will work in HTML). [/snip] The best form HTML attributes is within double quotes. This stems from the parent language of all of the mark-up languages, SGML (standard generalized mark-up language). XML and XHTML both more closely follow the rules/recommendations of the parent language. HTML validation engines genrally throw exceptions if attributes are not quoted. It has always been considered good form.

« previous php.general (#162414) next »