The file when saved as a noPHPcode html file passes validation, it fails when doing a live validation.

No the messages did not help (at least I can't find anything wrong):

Validation Output: 3 Errors

  1. Error Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this
        
    • You forgot to close a tag, or
    • you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

    The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

  2. Info Line 27, Column 1: start tag was here
    <div class="pop_con">
  3. Error Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this
        
    • You forgot to close a tag, or
    • you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

    The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

  4. Info Line 26, Column 1: start tag was here
    <div class="pop_box_con">
  5. Error Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this
        
    • You forgot to close a tag, or
    • you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

    The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

  6. Info Line 24, Column 1: start tag was here
    <div id="wrapper">


Bob Schwartz <[email protected]>
I have a PHP file that fails validation.

The W3C validator claims that there are three divs missing their closing tag, or that perhaps there is something in the divs that the validator doesn't like.

I saved the php you included to a file, validated it by upload on
http://validator.w3.org/ and it passed as HTML 4.01 Strict.  How did
it fail for you?  Did the links to more information on the errors not
help?

Confused,
--
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
http://koha-community.org supporter, web and library systems developer.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire (including development) at http://www.software.coop/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to