Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do <img> tags in html support animated gifs?

I am making a photo upload site, and began to wonder: Do <img> tags in html support animated gifs, and can they actually show animated gifs in their image?

Also, if <img> tags don't support animated gifs, is there a way to implement that cross browser?

Thanks

like image 641
H Bellamy Avatar asked Dec 11 '11 09:12

H Bellamy


2 Answers

Yes

like image 154
splattne Avatar answered Sep 17 '22 23:09

splattne


The img tag has nothing to do with it - it's the browser rendering engine that needs to support them.

And as far as I know, all the mainstream ones support animated gifs, though some give the user control over only showing the animation once (why? because they can be incredibly annoying. Think carefully before using them).

like image 36
Oded Avatar answered Sep 20 '22 23:09

Oded