+ Reply to Thread
Results 1 to 2 of 2

Thread: CSS and validation WC3 compliance

  1. #1
    Newbie Yangster is an unknown quantity at this point
    Join Date
    Oct 2008
    Location
    Doncaster, UK
    Posts
    1

    Default CSS and validation WC3 compliance

    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

  2. #2
    Web Slave blacknight is an unknown quantity at this point blacknight's Avatar
    Join Date
    Sep 2008
    Location
    Ireland
    Posts
    533

    Default

    Simon

    Welcome to the site.

    Can you give us a link to the live page so that I can check the full validation results?

    I've found in the past that the validator can barf on line X, as a result of something on line Y (if you follow what I mean)

    Michele

+ Reply to Thread

Visitors found this page by searching for:

wc3 validation

valign wc3

wc3 compliance testing online free

wc3 img src align

valign wc3 error

wc3 align image bottom css

discarding newline in URL reference

img src align wc3

WC3 CSS testing

SEO Blog

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28