Problème dans mon code HTML

Fermé
lol59000 Messages postés 11 Date d'inscription vendredi 8 novembre 2013 Statut Membre Dernière intervention 1 février 2018 - 1 sept. 2017 à 13:53
lol59000 Messages postés 11 Date d'inscription vendredi 8 novembre 2013 Statut Membre Dernière intervention 1 février 2018 - 2 sept. 2017 à 11:55
Bonjour, j'ai créer un site web avec photoshop puis je l'ai ouvert avec dreamweaver et j'ai un erreur dans mon code.
Voila le code:

<html>
<head>
<title>chauffage cor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (chauffage cor.psd) -->
<table id="Tableau_01" width="1920" height="4001" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="15">
<img src="images/chauffage_01.jpg" width="1920" height="21" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="images/chauffage_02.jpg" width="40" height="3979" alt=""></td>
<td colspan="2">
<a href="https://www.facebook.com/willotrenovation/?notif_t=fbpage_fan_invite&notif_id=1503853723859827" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_03.jpg" width="154" height="141" alt=""></a></td>
<td colspan="12" rowspan="2">
<img src="images/chauffage_04.jpg" width="1726" height="1036" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/chauffage_05.jpg" width="154" height="895" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/chauffage_06.jpg" width="31" height="2943" alt=""></td>
<td colspan="2">
<a href="index.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_07.jpg" width="262" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_08.jpg" width="36" height="2943" alt=""></td>
<td>
<a href="Plomberie.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_09.jpg" width="263" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_10.jpg" width="39" height="2943" alt=""></td>
<td>
<a href="Chauffage.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_11.jpg" width="263" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_12.jpg" width="58" height="2943" alt=""></td>
<td>
<a href="Electricite.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_13.jpg" width="262" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_14.jpg" width="51" height="2943" alt=""></td>
<td>
<a href="realisation-electricite1.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_15.jpg" width="260" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_16.jpg" width="53" height="2943" alt=""></td>
<td>
<a href="contact.html" rel="nofollow noopener noreferrer" target="_blank"><img src="images/chauffage_17.jpg" width="249" height="136" alt=""></a></td>
<td rowspan="2">
<img src="images/chauffage_18.jpg" width="53" height="2943" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/chauffage_19.jpg" width="262" height="2807" alt=""></td>
<td>
<img src="images/chauffage_20.jpg" width="263" height="2807" alt=""></td>
<td>
<img src="images/chauffage_21.jpg" width="263" height="2807" alt=""></td>
<td>
<img src="images/chauffage_22.jpg" width="262" height="2807" alt=""></td>
<td>
<img src="images/chauffage_23.jpg" width="260" height="2807" alt=""></td>
<td>
<img src="images/chauffage_24.jpg" width="249" height="2807" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="40" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="31" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="123" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="139" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="36" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="263" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="39" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="263" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="58" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="262" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="51" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="260" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="249" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="53" height="1" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>


L'erreur est ligne 1, ils disent: doctype must be declared first

j'ai rechercher sur google et j'ai vue que c'est parce qu’il manque <!DOCTYPE html> à la première ligne j'ai donc essayer de descendre <html> d'une ligne et de rajouter sa mais j'ai toujours l'erreur. Que faire?
Merci d'avance
A voir également:

5 réponses

Kuartz Messages postés 850 Date d'inscription vendredi 13 février 2015 Statut Membre Dernière intervention 15 février 2019 61
1 sept. 2017 à 14:09
Bonjour,

C'est effectivement parce qu'il faut écrire <!DOCTYPE html> au début du document, avant la balise <html>.

As-tu essayé en vidant le cache et en réessayant après?

Cordialement.
0
lol59000 Messages postés 11 Date d'inscription vendredi 8 novembre 2013 Statut Membre Dernière intervention 1 février 2018
1 sept. 2017 à 14:38
Sa a marcher. Sa a supprimer l'erreur par contre maintenant les image de mon site sont décaler vers le bas avec une bande blanche au dessus. Que faire?
0
Kuartz Messages postés 850 Date d'inscription vendredi 13 février 2015 Statut Membre Dernière intervention 15 février 2019 61
Modifié le 1 sept. 2017 à 16:56
Puis-je avoir le code original ainsi qu'un screenshot?

Edit : Pardon, j'ai déjà le code original, je veux bien le screenshot ou le site web il est hebergé
0
lol59000 Messages postés 11 Date d'inscription vendredi 8 novembre 2013 Statut Membre Dernière intervention 1 février 2018
1 sept. 2017 à 18:42
0

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

Posez votre question
lol59000 Messages postés 11 Date d'inscription vendredi 8 novembre 2013 Statut Membre Dernière intervention 1 février 2018
2 sept. 2017 à 11:55
UP svp
0