Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2513 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Pb validation page HTML

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Pb validation page HTML

n°1811144
Alisteroid
Posté le 12-11-2008 à 14:06:22  profilanswer
 

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?

mood
Publicité
Posté le 12-11-2008 à 14:06:22  profilanswer
 

n°1811147
Alisteroid
Posté le 12-11-2008 à 14:11:01  profilanswer
 

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


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Pb validation page HTML

 

Sujets relatifs
afficher page accueil depuis excelModification d'html généré à la volée
redirection apres validation du formulaire + email saisie valideProblème tableau html
problème avec un modulo et un tableau htmlValidation formulaire : affiche image devant réponses justes ou fausse
[resolu] alignement cellule dans tableau HTMLProblème bête, feuille de style html
Pb bouton-image avec php [résolu]Vidéo sans son sur une page dreamweaver
Plus de sujets relatifs à : Pb validation page HTML


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR