Hi,
Just joined your forum and have a couple of questions. I am in the process of converting my whole site to use CSS as I am seeing some brilliant results in the search engines and particularly google by doing so, I am also trying to get the pages to be totally valid code - hence the below problem I am having trouble solving.
Hi,
Just coded the following page in CSS but getting warnings when testing the specific errors are -
<img> discarding newline in URI reference
I can see that this is caused by a RETURN or newline in the code - the page is dynamically generated - here is the section that shows the error -
</form></td></tr><tr align='center' valign='middle'>
<td align='center'><img src='products/canon
_s.gif' alt='Canon'> </td>
So at the end of line 2 you can see the URL is broken over to the newline .... here is the chunk of code that is producing same -
$strTable = $strTable . "<tr align='center' valign='middle'>\n"."<td align='center'>$strManufacturerNameLogo</td>\n"."<td align='center' valign='middle'>".($strManufacturerName)." " . $strProductType . "</td>\n"."<td align='left' valign='middle'>";
Can anyone tell me why this is causing the warnings that I am getting please.
Any help would be much appreciated.
Simon


LinkBack URL
About LinkBacks




Reply With Quote
