Image html
Résolu
derek487
Messages postés
11
Date d'inscription
Statut
Membre
Dernière intervention
-
derek487 Messages postés 11 Date d'inscription Statut Membre Dernière intervention -
derek487 Messages postés 11 Date d'inscription Statut Membre Dernière intervention -
salut a tous ,
bon voila je n'arrive pas a inserer une image en html (ca ne l'affiche pas)

et c'est pareil avec le favicon je n'arrive pas a l'afficher j'ai essayer un tat de code differents :
bon voila je n'arrive pas a inserer une image en html (ca ne l'affiche pas)
<p><img src="image.jpg" alt=" no" ></p>
et c'est pareil avec le favicon je n'arrive pas a l'afficher j'ai essayer un tat de code differents :
<lien rel="icon" href="favicon.ico" type="image/x-icon" >
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
4 réponses
-
Bonjour,
Il me semble, vu ton impression écran, que ton fichier s'appelleimage .jpg
avec un espace entreimage
et.jpg
! -
Salut,
Si tu regardes ton fichier image sur disque, il semble qu'il y ait un blanc entre le e et le .
Doncimage.jpg
n'est pasimage .jpg
Pour le favicon je passe mon tour, c'était autrefois un tel m... que j'ai laissé tombé ;-)
-
"c'était autrefois un tel m... que j'ai laissé tombé ;-)"
Ça n'a pas beaucoup changé, il n'y a qu'à regarder dans la page générée par CCM :
<meta name="msapplication-TileImage" content="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/mstile-144x144.png" /> <meta name="msapplication-config" content="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/browserconfig.xml" /> <link rel="manifest" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/manifest.json" /> <link rel="mask-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/safari-pinned-tab.svg" color="#d51827" /> <link rel="icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/favicon-32x32.png" sizes="32x32" type="image/png" /> <link rel="icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/favicon-16x16.png" sizes="16x16" type="image/png" /> <link rel="icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/android-chrome-192x192.png" sizes="192x192" type="image/png" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-57x57.png" sizes="57x57" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-60x60.png" sizes="60x60" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-72x72.png" sizes="72x72" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-76x76.png" sizes="76x76" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-114x114.png" sizes="114x114" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-120x120.png" sizes="120x120" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-144x144.png" sizes="144x144" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-152x152.png" sizes="152x152" /> <link rel="apple-touch-icon" href="https://astatic.ccmbg.com/www.commentcamarche.net/_skin/favicon/apple-touch-icon-180x180.png" sizes="180x180" />
Super simple ^^
-
-
merci que je suis con j'avait même pas remarquer sinon pour le favicon vous -avez une idee ?
-
Pour le favicon, il faut surtout être rigoureux.
<lien rel="icon" href="favicon.ico" type="image/x-icon" >
est faux car<lien
ce n'est pas<link
et que si on ouvre une balise il faut la fermer.
Même problème avec<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
il faut fermer la balise.
Un peu de recherche sur Google, ou Wikipédia et tu as la bonne réponse à copier-coller :<link rel="icon" type="image/png" href="favicon.png" />
-
-
-
c'est bon j'ai trouver merci KX