Rechercher : dans
Par :

Code source

Dernière réponse le 18 mai 2008 à 00:46:19 Kristopher, le 8 mai 2008 à 18:31:13 
 Signaler ce message aux modérateurs

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

Configuration: Windows XP
Firefox 2.0.0.14

Meilleures réponses pour « Code source » dans :
Il est possible de récupérer le code source PHP d'un site Voir Mythe Un utilisateur peut récupérer le code source PHP d'un site web comme il peut récupérer le code HTML. Réalité FAUX Explications Les fichiers PHP (ASP, JSP, etc.) sont des fichiers interprétés côté serveur, ce qui signifie que le serveur...
On peut cacher le code source d'une page HTML Voir Mythe: On peut cacher le code source d'une page HTML. Réalité: FAUX. Explications: Pour pouvoir afficher une page web (HTML), le navigateur doit - à un moment où un autre - avoir le code HTML en clair. Il y a donc toujours moyen de le...

1

Daddy Cool, le 8 mai 2008 à 18:32:54

Faudrait déjà une adresse ;)

Répondre à Daddy Cool

2

weetabix40, le 8 mai 2008 à 18:33:30

Salut,
Il manque l'URL ;) | ...A consommer sans modération... |

Répondre à weetabix40

3

Kristopher, le 8 mai 2008 à 18:41:09

Merci messieurs, pour l'URL, je peux vous l'envoyer par MP ?

Voir Profil

Répondre à Kristopher

4

weetabix40, le 8 mai 2008 à 18:42:02

Copie simplement l'url sur ce sujet... | ...A consommer sans modération... |

Répondre à weetabix40

5

Daddy Cool, le 8 mai 2008 à 18:46:28

Comment tu sais qu'il y a "apparemment" 15 erreurs ?

Répondre à Daddy Cool

6

Kristopher, le 8 mai 2008 à 18:54:46

Sur W3C ;)

Et je n'arrive pas vraiment à les interpréter...

Répondre à Kristopher

7

Daddy Cool, le 8 mai 2008 à 19:05:26

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

Répondre à Daddy Cool

8

weetabix40, le 8 mai 2008 à 19:06:08

Dreamweaver ne me donne que 10 incompatibilités navigateur | ...A consommer sans modération... |

Répondre à weetabix40

9

Kristopher, le 8 mai 2008 à 19:08:17

Ok, je prends ^^

Pourrais-tu m'envoyer le code source corrigé en MP stp ?

Voir Profil

Répondre à Kristopher

10

weetabix40, le 8 mai 2008 à 19:15:31

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 : 'rep­eat-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 : 'r­epeat-y'</mm_linenumber>
		<mm_description><![CDATA[]]></mm_description>
		<mm_reportedby></mm_reportedby>
	</mm_reportitem>
</mm_report>

| ...A consommer sans modération... |

Répondre à weetabix40

11

Daddy Cool, le 8 mai 2008 à 19:18:03
  • +2

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.

++

Répondre à Daddy Cool

12

Kristopher, le 8 mai 2008 à 19:25:38

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>

Répondre à Kristopher

13

weetabix40, le 8 mai 2008 à 19:30:38

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 | ...A consommer sans modération... |

Répondre à weetabix40

14

Daddy Cool, le 8 mai 2008 à 19:36:46

http://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">

Répondre à Daddy Cool

15

weetabix40, le 8 mai 2008 à 19:41:30

Ça roule,
Je te laisse pour la formation, | ...A consommer sans modération... |

Répondre à weetabix40

16

Kristopher, le 8 mai 2008 à 19:42:24

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 !

Voir Profil

Répondre à Kristopher

17

Daddy Cool, le 8 mai 2008 à 19:45:22

Bonne continuation

Répondre à Daddy Cool

18

Kristopher, le 17 mai 2008 à 21:08:46

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 !

Voir Profil

Répondre à Kristopher

19

 Daddy Cool, le 18 mai 2008 à 00:46:19

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

Répondre à Daddy Cool
Collection CommentÇaMarche.net