Re: Validation XHTML with php

Hello!

As far as I see in your source code you have "two documents joined
together" but literally.

here is snipped from your source code from line 342-355

<li><a href=""></a></li>
</ul><!-- liens end -->
<html>
<!-- Date de création: 8/2/2007
fichier mv3a.php -->
<head>
<title>Visites</title>
</head>
<body>
</body>
</html<br clear="left" />
<img id="decorbas" src="foott.gif" alt="" />
<table id="footer">
<tr>

html, body, head and title may occur only once in document!!!!

I hope this helps!

--
Zoran
http://www.rentalio.com/


On 7/8/07, Jean Pousseur <jpousseur@free.fr> wrote:
>
>  Hello,
>
>  I have just a little php code in my page :
>  <?php
>  include ("count/mv3a.php");
>  ?>
>  located  just after <body>
>
>  The URL of my page : http://jean1668.free.fr/index.php
>
>  I don't figure out why I can't obtain a valid XHTML:
>
>    Below are the results of checking this document for XML well-formedness
> and validity.
>
>     1. Error Line 186 column 5: document type does not allow element "html"
> here.
>
>        <html>
>
>        The element named above was found in a context where it is not
> allowed. This could mean that you have incorrectly nested elements -- such
> as a "style" element in the "body" section instead of inside "head" -- or
> two elements that overlap (which is not allowed).
>
>        One common cause for this error is the use of XHTML syntax in HTML
> documents. Due to HTML's rules of implicitly closed elements, this error can
> create cascading effects. For instance, using XHTML's "self-closing" tags
> for "meta" and "link" in the "head" section of a HTML document may cause the
> parser to infer the end of the "head" section and the beginning of the
> "body" section (where "link" and "meta" are not allowed; hence the reported
> error).
>
>        ✉
>     2. Error Line 194 column 6: unclosed end-tag requires SHORTTAG YES.
>
>        </html<div id="global">
>
>  May I request your help ?
>  Thanks in advance.
>  Jean Pousseur
>
>

Received on Monday, 9 July 2007 05:56:40 UTC