How do I display a gif file in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I display a gif file in HTML?

I have been having trouble finding out

10th Jul 2018, 2:35 AM
Xave Clayton
Xave Clayton - avatar
3 Answers
+ 3
Hello, Xave Clayton ! <img src="path/image.gif" alt='Gif"/> Try using the following value. By the way, see the list of supported formats for the img tag https://developer.mozilla.org/en/HTML/element/img
10th Jul 2018, 5:05 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
Same way you display a jpg or png.
10th Jul 2018, 3:01 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
thx
10th Jul 2018, 3:02 AM
Xave Clayton
Xave Clayton - avatar