RE: Quotes in Heredoc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ashim Kapoor
> From Ashley Sheridan
>> The quotes you mention are in the HTML, nothing to do with PHP. HTML
will
>> work without the quotes in most cases (unless there's a space in the
value
>> for the attribute) but the quotes are required in XHTML and will
cause
>> unexpected results.
> 
> Can you elaborate on the XHTML part? Do you mean they are required in
XHTML
> but optional in HTML ?

Please keep your attribution levels straight.

XHTML also requires all tags, attribute labels and values to be in lower
case and values must be quoted. So your original content should be

 <table cellpadding="0" cellspacing="0" border="0" align="center"
 width="621">
 <tr>
 <td rowspan="2"><img width="15" height="1"
 src="../images/spacer.gif"></td>

You should install the HTML Validtor plug-in for Firefox and use it
regularly to catch all of the errors you can. Some of this can also be
replaced with style sheets.

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux