Insert a .gif

Solved
Helenedu39 Posted messages 123 Status Member -  
Helenedu39 Posted messages 123 Status Member -
Bonjour ou bonsoir,

voici comment insérer un GIF animé dans votre code HTML. Vous pouvez utiliser la balise `` comme vous l'avez fait pour insérer votre logo, mais assurez-vous que la balise est correctement fermée. Voici un exemple de code modifié :

<!DOCTYPE html>
<html lang="fr">
<header>
<!-- En-Tête de la page -->
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<title>Accueil</title>

<ul id="nav"><!--
--><li><a href="#">Accueil</a></li><!--
--><li><a href="#">Services</a></li><!--
--><li><a href="#">À propos</a></li><!--
--><li><a href="#">Contact</a></li>
</ul>
<img src="logo1.gif" alt="mon_logo" />
<img src="mon_gif_anime.gif" alt="mon_gif" />
</header>

dans l'attente d'une solution
helenedu39

3 answers

  1. Jimpix Posted messages 12079 Registration date   Status Member Last intervention   4 391
     
    Hello,

    <img src="image.gif">

    To align left, right, or center:

    <img src="image.gif" align="left">

    <img src="image.gif" align="right">

    <img src="image.gif" align="center">
    6
    1. Helenedu39 Posted messages 123 Status Member 111
       
      There’s something that must be wrong because
      my image still doesn’t display even with
      another image, and they are all in the same folder as the HTML5 pages
      that I’m coding, so what should I do?
      0
  2. Anonymous user
     
    salut, tu n'a pas refermer ta balise img

     <img src="logo1.gif" alt="mon_logo" /> </header> 


    <img src="logo1.gif" alt="mon_logo" />

    ׺°"~'"°º×]|I{*------» m3745p10!7 «------*}I|[׺°"~'"°º×
    0
    1. Helenedu39 Posted messages 123 Status Member 111
       
      Hello,

      even when I close this tag, nothing shows up
      I'm despairing :(
      0
  3. Anonymous user
     
    Hello

    The meta, link, and title tags should be between <head> and </head>, not <header>!

    <img> should be in <body> (and possibly <header>)

    Also correct these defects, even though I'm afraid they may not be enough to explain the absence of the image.
    0
    1. Helenedu39 Posted messages 123 Status Member 111
       
      Hello,

      Actually, I want my image to be present in my header and therefore in the <head> tag, but I wasn't sure why it seemed to me that this tag was called <header>.
      0
    2. Pierrecastor Posted messages 10830 Registration date   Status Moderator Last intervention   4 215
       
      Hi

      The head tag is not the header of the site; it is a series of information that does not display on the web page.
      0
    3. Helenedu39 Posted messages 123 Status Member 111
       
      Hello,

      okay, strangely that was what was blocking my image
      thank you very much
      0