Code source
Kristopher
Messages postés
3752
Statut
Contributeur
-
Daddy Cool Messages postés 73 Statut Membre -
Daddy Cool Messages postés 73 Statut Membre -
Bonjour,
Est-ce que quelqu'un aurait la gentillesse de vérifier le code source de mon site s.v.p ?
Apparemment, il y a 15 erreurs...
Merci par avance
--
Voir Profil
Est-ce que quelqu'un aurait la gentillesse de vérifier le code source de mon site s.v.p ?
Apparemment, il y a 15 erreurs...
Merci par avance
--
Voir Profil
Configuration: Windows XP Firefox 2.0.0.14
16 réponses
-
15 erreurs, mais ton document est déclaré quoi ? (html 4, xhtml1.0 strict|transitional, etc.)
1- pas de DOCTYPE
2- pas de fermeture de tes balises meta ==> <meta ... />
3- balise <script ==> pas de "language=javascript" ça sert à rien
4- <table ==> met tout ce qui est "style" dans la balise style
5- idem pour tout le reste de ton code (width, border et tout ça entre dans style="...")
6- tu as beaucoup d'attribut non quoté ex: align=center ===> pas bien
voilà pour l'instant.. Je te conseille de sortir de ton body tout ce qui est style et de placer ça dans ta balise <style> en créant des class.
++ -
-
Salut,
Il manque l'URL ;) -
Merci messieurs, pour l'URL, je peux vous l'envoyer par MP ?
-
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question -
-
Sur W3C ;)
Et je n'arrive pas vraiment à les interpréter... -
Tant qu'on aura pas d'adresse, on ne pourra pas vraiment t'aider.......
File nous donc directement l'adresse que tu utilises pour checker ton site sur w3c -
Dreamweaver ne me donne que 10 incompatibilités navigateur
-
Ok, je prends ^^
Pourrais-tu m'envoyer le code source corrigé en MP stp ?
-
Je n'ai que le rapport XML :
<mm_report> <mm_reportname> RapportDeRésultats.xml</mm_reportname> <mm_reportdate>05/08/08 19:00:41</mm_reportdate> <mm_reportlocation>E:\\Bureau\</mm_reportlocation> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[52]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '3'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[58]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '200'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[67]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '1'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[73]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : 'repeat-y'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[80]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '150'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[84]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '30'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[94]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : '380'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[96]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Propriété non prise en charge : overflow-x</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[96]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Propriété non prise en charge : overflow-y</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> <mm_reportitem> <mm_statusicon>10</mm_statusicon> <mm_displaystr><![CDATA[112]]></mm_displaystr> <mm_file>E:\Bureau\Untitled-1.html</mm_file> <mm_linenumber>Valeur non prise en charge : 'repeat-y'</mm_linenumber> <mm_description><![CDATA[]]></mm_description> <mm_reportedby></mm_reportedby> </mm_reportitem> </mm_report>
-
-
Alors pour le rapport XML je ne vois pas vraiment en quoi ca peut m'avancer mais merci quand meme weetabix40 ;)
Daddy Cool c'est bien cool pour tes conseils mais justement pour "pas de DOCTYPE" je ne vois pas comment faire...
Enfin si quelqu'un aurait quelque chose a ajouter voici et merci !
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<title>Kristopher</title>
<script language="javascript" type="text/javascript">
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button==2
|| event.button == 3)) {
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>
<style>
body
{
background-color:#AAAAAA;
font-family: "Calibri", sans-serif;
}
a
{
text-decoration: none;
color:#111111;
}
a:hover
{
text-decoration: underline;
color:#000000;
}
.btext
{
border-style: solid;
border-width: 1px;
padding-left: 4px;
padding-right: 4px;
padding-top: 1px;
padding-bottom: 1px;
color:#123456
}
.line
{
background-color:#dddddd;
height:3;
}
.light
{
color:#999999;
text-align:center;
width: 200;
}
.light:hover
{
background-color: #999999;
}
img
{
border-style:solid;
border-width:1;
}
</style>
</head>
<body style="background-color:black;" oncontextmenu="return false">
<table style="margin-left:-0" border=0 width=1010>
<tr><td style="background-image:url('lef41.png');background-color:black;background-repeat:repeat-y;" width=130></td><td width=750 align=center>
<table border=0 align=center width=750 frame="box">
<tr>
<td></td>
</tr><tr>
<td class="line"></td>
</tr><tr>
<td style="background-image:url('lojt.png'); height:150"> </td>
</tr><tr>
<td class="line"></td>
</tr><tr>
<td style="height:30">
<a target=frame href=accueil.html><img width=120 src=1.png onmouseover="this.src='3.png'" onmouseout="this.src='1.png'">
<a target=frame href=profils.html><img width=120 src=profils1.png onmouseover="this.src='profils3.png'" onmouseout="this.src='profils1.png'"></a>
<a target=frame href=trucs.html><img width=120 src=as1.png onmouseover="this.src='as3.png'" onmouseout="this.src='as1.png'"></a>
<a target=frame href=tarif.html><img width=120 src=tarif1.png onmouseover="this.src='tarif3.png'" onmouseout="this.src='tarif1.png'"></a>
<a target=frame href=contact.html><img width=120 src=contact1.png onmouseover="this.src='contact3.png'" onmouseout="this.src='contact1.png'">
</td>
</tr><tr>
<td class="line"></td>
</tr><tr>
<td style="height:380;">
<iframe style="margin-left:0;background-color:#eeeeee;overflow-x:hidden;overflow-y:auto;" name="frame " src="accueil.html" height="100%" width="100%" border="0" frameborder="0" marginwidth="50">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
</td>
</tr><tr>
<td class="line"></td>
</tr>
<!--<tr>
<td class="line"></td>
</tr><tr>
<td style="background-color:#888888; height:28; text-align:center; color:#cccccc"></td>
</tr><tr>
<td class="line"></td>
</tr>-->
</table>
</td><td style="background-image:url('lef41-r.png');background-color:black;background-repeat:repeat-y;" width=130></td></tr>
</table>
</body>
</html> -
A rajouter au début :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
Une feuille de style serai également la bienvenue -
https://en.wikipedia.org/wiki/Doctype
Weetabix40, moi je propose plutôt qu'il fasse l'exercice jusqu'au bout et qu'il valide son code en XHTML 1.1 strict. C'est comme ça qu'on apprend à éviter des erreurs :P
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -
Bravo weetabix40 ton site est bien validé ;) http://validator.w3.org/...
Espérons que d'ici peu le mien le sera aussi... Enfin, si vous avez d'autres conseils, merci de m'en faire part ;)
Je vous tiendrai au courant !
Bonne soirée messieurs !
-
-
Re bonsoir,
Quand je rajoute au début de mon code ceci :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Le site ne s'affiche plus comme il faut et pire encore, il y a plus de 150 erreurs trouvées sur W3C...
Et c'est pareil quand j'essaie de fermer mes balises meta, supprimer language=javascript etc.
Décidemment, y'a quelque chose qui cloche :(
Des suggéstions ?
Merci !
-
Suit les instructions que le w3c te donne pour corriger les erreurs. (Mieux, donne nous l'adresse web que tu emplois pour valider ton site)
Et corrige, une erreur à la fois. C'est la meilleure façon d'apprendre à écrire du html selon les standards ;)