Validation w3c

Résolu/Fermé
carbooky Messages postés 57 Date d'inscription mercredi 16 janvier 2008 Statut Membre Dernière intervention 1 mai 2008 - 8 févr. 2008 à 08:33
Scalpweb Messages postés 1467 Date d'inscription samedi 13 mars 2004 Statut Membre Dernière intervention 5 mai 2010 - 8 févr. 2008 à 09:36
Bonjour,
Je suis désoler de vous déranger pour presque rien mais la je bloque.
Je ne sais pas comment faire pour viter mes dernieres erreur si quelque voudrait bien me donner des conseil je serait bien content.

http://validator.w3.org/...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
   <head>
        <title>Accueil de Chrysalide</title>
		<?php
			require_once ("fct/Connect.php");
			require_once ("fct/Connexion.php");
			require_once ("fct/ExecRequete.php");
			require_once ("fct/Normalisation.php");
			$connexion = Connexion (NOM, PASSE, BASE, SERVEUR);
			$requete = "select * from meta where id=1";
			$resultat = ExecRequete ($requete, $connexion);
			$photo = ObjetSuivant($resultat);
			$keyword = $photo->keyword;
			$description = $photo->description;
		?>
			<?php echo ' <meta name="description" content="$description" />';
			echo '<meta name="keywords" content="$keyword" />'; ?>
			<meta name="subject" content="Association Chrysalide" />
			<meta name="author" content="Paranier Guillaume" />
			<meta name="revisit-after" content="7 days" />
			<meta name="identifier-url" content="http://" />
			<meta name="date-creation-ddmmyyyy" content="25022008" />
			<meta name="Robots" content="all" />
			<meta name="Rating" content="General" />
			<meta name="organization" content="association chrysalide" />
			<meta name="Classification" content="chrysalide ressourcerie recyclerie association" />
			<meta http-equiv="Content-Language" content="fr" />
			<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />
			<meta name="location" content="France, FRANCE" />
			<meta name="expires" content="never" />
			<meta name="date-revision-ddmmyyyy" content="25022008" />
			<meta name="Distribution" content="Global" />
			<meta name="Audience" content="General" />
			<link rel="stylesheet" href="fct/style.css" type="text/css" media="screen" title="StyleCSS" />
   </head>
<body onload="f1()" onunload="clearTimeout(pa)">
<div id="global"> <!-- Extensibilité verticale du design -->
	
	<div id="header"> <!-- Bannière beige du haut du design (header) -->
		<p id="accessibilite">
			<a href="#menugauche" title="Aller au menu">Aller au menu</a> <br />
			<a href="#footer" title="Aller en bas">Aller en  bas</a>
		</p>
		<h1>Bienvenue &agrave; Chrysalide</h1>
	</div> <!-- Fin du header -->
	
	<div id="menugauche"> <!-- Le menu. Pour rajouter un menu, recopiez le code ci-dessous à partir de <h3>Menu</h3> jusqu'à <div id="menugauchebas"></div> -->
		<!-- Insertion des bords arrondis du haut du menu --><h3>Menu</h3>
				<ul>
					<li><a href="index.php" title="acueil">Accueil</a><br /></li>
					<li><a href="presentation" title="Presentation">Présentation</a><br /></li>
					<li><a href="activite" title="activite">Activité</a></li>
					<li><a href="ressourcerie" title="ressourcerie - recyclerie">Ressourcerie Recyclerie</a></li>
					<li><a href="contact.php" title="contact">Contact</a></li>
					<li><a href="liens.php" title="Liens">Liens</a></li>
				</ul>
        <br />
	 <div id="menugauche1"><h3>Nos financeurs</h3>
		<ul>
			<li><img src="logo/logo_saint_etienne.jpg" alt="saint etienne" height="50" width="100" /></li>
			<li><img src="logo/FAPE_.jpg" alt="fape" height="50" width="100" /></li>
			<li><img src="logo/Logo region RA.jpg" alt="region" height="50" width="100" /></li>
			<li><img src="logo/logo_eyeo_2_fr.jpg" alt="eyeo" height="50" width="100" /></li>
			<li><img src="logo/250px-Logo-saint-Etienne-Metropole.jpg" alt="st etienne" height="50" width="100" /></li>
			<li><img src="logo/conseilgeneral.gif" alt="conseil general" height="50" width="100" /></li>
			<li><img src="logo/logoplie.jpg" alt="plie" height="50" width="100" /></li>
			<li><img src="logo/1_1_FR_IMG.gif" alt="fr" height="50" width="100" /></li>
			<li><img src="logo/logpdrh.jpg" alt="pdrh" height="50" width="100" /></li>
		</ul>
	 </div>
		<div id="menugauche2"><h3>Info Site</h3>
				<ul>
					<li>Réaliser par</li>
					<li>Paranier&nbsp;Guillaume</li>
					<li>----------------</li>
					<li>Optimiser pour</li>
					<li>Mozilla et IE7</li>
				</ul>
		</div>
		<div id="menugauchebas"></div>
		</div> <!-- Fin du menu -->
	<br />
	<script type="text/javascript">
//<![CDATA[

						  function f1()
                                        {
										       var d = new Date();
                                               jour =d.getDate();
                                               mois =d.getMonth()+1;
                                               annee =d.getFullYear();
                                               heure =d.getHours();
                                               minute =d.getMinutes();
                                               sec =d.getSeconds();
                                               sec0="" ; min0="" ;        
											   heure0="" ; mois0="" ; jour0="" ; annee0="";
                                               
                                               if(sec<10)
												sec0="0";
                                               if (minute<10)
												min0="0";
                                               if (heure<10)
												heure0="0";   
                                               if (mois<10)
												mois0="0";
                                               if (jour<10)
											   jour0="0";
                                               sec0+=sec;
                                               min0+=minute;
                                               heure0+=heure;
                                               mois0+=mois;
                                               jour0+=jour;
                                               document.aaa.bbb.value=jour0+'/'+mois0+'/'+annee;
											   document.aaa.ccc.value=heure0+':'+min0+':'+sec0;
											   //window.document.write(jour0+'/'+mois0+'/'+annee+'<br>');            
											   //window.document.write(heure0+':'+min0+':'+sec0);
										       pa = setTimeout("f1()",1000);
										} 
						//]]> 
	</script>

	<div id='titresite'><h4>Accueil de chrysalide</h4></div>
	<div id="contenu">
		<?php
		require_once ("fct/UtilBD.php");
		$connexion = Connexion (NOM, PASSE, BASE, SERVEUR);   
		$dir = opendir ("admin/PHOTOS");
		$requete = "SELECT * FROM accueil ORDER BY idAccueil desc";
		$resultat = ExecRequete ($requete, $connexion);
		while ( $fichier = readdir($dir) )
		{
			$photo = ObjetSuivant($resultat);
			if(file_exists("admin/PHOTOS/".$photo->idAccueil.".jpg"))
			{
				$affiche=500;
				$taille=getimagesize("admin/PHOTOS/".$photo->idAccueil.".jpg");
				$largeur=$taille[0];
				$hauteur=$taille[1];
				
				//image verticale ou carrée
				if ($hauteur>=$largeur)
				{
				$hauteur2=$affiche;
				$largeur2=round(($hauteur2/$hauteur)*$largeur);
				}
				//image horizontale ou carrée
				else
				{
				$largeur2=$affiche;
				$hauteur2=round(($largeur2/$largeur)*$hauteur);
				}
				$id = $photo->idAccueil;
				echo "<table><tr><td align='center'><br /><img alt='photo accueil' width='$largeur2'  height='$hauteur2' src='admin/PHOTOS/".$id.".jpg'></img><br /><br /><div id='descriptionphoto'><h5>$photo->description</h5><br /><br />$photo->video</div></td></tr>";
				echo "\n";
			}
		}
		closedir ($dir);
		?>
		</table>
		<body onLoad="f1()" onUnload="clearTimeout(pa)">
		</body>
		<form name="aaa">
		DATE : <input name="bbb"  type="text" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HEURE: <input name="ccc"  type="text" />
		</form>
		<br />
	</div> <!-- Fin de la page -->
		
		<p id='footer1'><a href="#header" title="Aller en haut de page">Aller haut de page</a></p>
		<p id='footer2'><a href="#menugauche" title="Aller au menu">Aller au menu</a></p>
		<p id='footer3'><a href="javascript:history.back()" title="Page precedente">Aller à la page précédente</a></p>
  </body>
</html>

7 réponses

Scalpweb Messages postés 1467 Date d'inscription samedi 13 mars 2004 Statut Membre Dernière intervention 5 mai 2010 43
8 févr. 2008 à 09:30
Autant pour moi :
<form method="post" action="index.php" name="aaa">


doit s'écrire :
<form method="post" action="index.php" id="aaa">


Le name se passe que en mode Transitional, pas en mode Strict.
2
carbooky Messages postés 57 Date d'inscription mercredi 16 janvier 2008 Statut Membre Dernière intervention 1 mai 2008 11
8 févr. 2008 à 09:33
Merci, j'ai pris une mauvaise habitute avec name . Merci pour tout.
C'est bon 0 erreur :D
1
Scalpweb Messages postés 1467 Date d'inscription samedi 13 mars 2004 Statut Membre Dernière intervention 5 mai 2010 43
8 févr. 2008 à 09:36
Content d'avoir pu t'aider, bonne journée.
1
Scalpweb Messages postés 1467 Date d'inscription samedi 13 mars 2004 Statut Membre Dernière intervention 5 mai 2010 43
8 févr. 2008 à 08:54
Premièrement, onLoad et onUnload doivent sécrire en minuscule :

onload et onunload

Pour ton formulaire, il faut rentrer les attributs suivants :

<form method="[post ou get]" name="aaa" action="[Page de destination]">


Je te propose de déjà modifier ça,on verra ensuite les erreurs qu'il reste ;-)
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
carbooky Messages postés 57 Date d'inscription mercredi 16 janvier 2008 Statut Membre Dernière intervention 1 mai 2008 11
8 févr. 2008 à 09:21
Merci c'est deja ca de regler de plus j'avais 2 <body> donc normale que ca me posait probleme^^
0
Scalpweb Messages postés 1467 Date d'inscription samedi 13 mars 2004 Statut Membre Dernière intervention 5 mai 2010 43
8 févr. 2008 à 09:24
Tu peux remettre un lien vers ce qu'il reste d'erreurs ?
0
carbooky Messages postés 57 Date d'inscription mercredi 16 janvier 2008 Statut Membre Dernière intervention 1 mai 2008 11
8 févr. 2008 à 09:28
Validation Output: 1 Error

1. Error Line 114, Column 46: there is no attribute "name".

<form method="post" action="index.php" name="aaa">



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.



il me reste plus que elle et c'est elle qui me pose vraiment probleme.
0