Pb validation page HTML

Pb validation page HTML - HTML/CSS - Programmation

Marsh Posté le 12-11-2008 à 14:06:22    

Bonjour,
 
Je suis à la fin d'un long projet, les pages n'ont aucunes erreur à part :
 

 1.   Error  Line 4, Column 12: document type does not allow element "body" here.
 
      </head><body>
      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 14, Column 6: end tag for "html" which is not finished.
 
      </html>
 
      Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
 
      Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.


 
Voila la source épurée qui génère les erreurs, je cherche en vain d'ou ça peut bien venir :/

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4.  <title>blabla</title>
  5. </head>
  6. <body>
  7.  <div id="page">
  8.  </div>
  9.  <div id="footer">
  10.  </div>
  11. </body>
  12. </html>


 
quelqu'un aurait une idée?

Reply

Marsh Posté le 12-11-2008 à 14:06:22   

Reply

Marsh Posté le 12-11-2008 à 14:11:01    

Arf j'avais zappé en frameset la balise <body> n'existe pas :/

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed