RE : [VE][64] Error Message Feedback

Thanks so much !! It works! I’m going to work on the accessibility for blind people now.

Perhaps with next on another of my problems!!

See you and thanks again.

 

Marie Chamoreau

 

-----Message d'origine-----
De : Martin Campos [mailto:vmartin.campos@gmail.com] 
Envoyé : mardi 24 mai 2005 13:22
À : Marie Chamoreau
Cc : www-validator@w3.org
Objet : Re: [VE][64] Error Message Feedback

 

The tags META, and STYLE must be appear between the tag <head> and </head>. (However <style> can be appear after body tag)

This is your code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


  2: <html lang="fr">



  3:     


  4: <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">






  5: <style type="text/css">


  6: 


  7: .Style1 {font-size: small}



  8: .Style2 {color: #E8790D}


  9: 


 10: </style>



 11: <head>


 12:             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



 13:             <title>Hydra Europe</title>           


 14:             <link rel="stylesheet" type="text/css" media="handheld, print, projection, screen" title="défaut" href="commun/css/commun.css"><link rel="stylesheet" type="text/css" media="handheld, print, projection, screen" title="défaut" href="commun/css/accueil.css"><link rel="stylesheet" type="text/css" media="print" title="défaut" href="commun/css/print.css"><link rel="stylesheet" type="text/css" media="handheld" title="défaut" href="commun/css/handheld.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/screen.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/handheld.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="fond noir" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="fond noir" href="commun/css/fondNoir.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/grandePolice.css"><script type="text/javascript" src="commun/js/scripting.js"></script>                 </head>



 15:     <body id="accueil">


 16:     <div id="document">


....





An this is the correct code:






<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


  2: <html lang="fr">



 11: <head>





  3:     






  4: <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">


  5: <style type="text/css">



  6: 


  7: .Style1 {font-size: small}


  8: .Style2 {color: #E8790D}



  9: 


 10: </style>





 12
:                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


 13:             <title>Hydra Europe</title>           




 14:             <link rel="stylesheet" type="text/css" media="handheld, print, projection, screen" title="défaut" href="commun/css/commun.css"><link rel="stylesheet" type="text/css" media="handheld, print, projection, screen" title="défaut" href="commun/css/accueil.css"><link rel="stylesheet" type="text/css" media="print" title="défaut" href="commun/css/print.css"><link rel="stylesheet" type="text/css" media="handheld" title="défaut" href="commun/css/handheld.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="print, projection, screen" title="écran" href="commun/css/screen.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="petit écran" href="commun/css/handheld.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="fond noir" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="fond noir" href="commun/css/fondNoir.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/commun.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/accueil.css"><link rel="alternate stylesheet" type="text/css" media="projection, screen" title="grande police" href="commun/css/grandePolice.css"><script type="text/javascript" src="commun/js/scripting.js"></script>                 </head>



 15:     <body id="accueil">


 16:     <div id="document">
 


And this is the link for the validation:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.hydraeurope.com%2Findex.html



2005/5/24, Marie Chamoreau <marie.chamoreau@mikli.fr>:

Hello,


I am trying to respect code  <http://www.w3.org/TR/1999/REC-html401-19991224/> HTML 4.01 Strict, for a web site for blind people, on this page first: http://www.hydraeurope.com/index.html 

and and there are its faults which I do not manage to solve:

1.      Line 11, column 5 : document type does not allow element "HEAD" here

<head >

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). 

 <mailto:www-validator@w3.org?Subject=%5bVE%5d%5b64%5d%20Error%20Message%20Feedback> ✉ 

2.      Line 15, column 19: document type does not allow element "BODY" here

<body id="accueil" >

Please, can you help me!!! I'm french ans my english is bad!

Thanks a lot!

 

 

 

Marie CHAMOREAU

 

 




-- 
Salu2:
MARTIN

Received on Tuesday, 24 May 2005 12:52:51 UTC