How to use an animated image in HTML page?

HTMLWeb DevelopmentFront End Technology

Animated images in HTML are an image on a web page that moves. It is in GIF format i.e. Graphics Interchange Format file.

To add an animated image in HTML is quite easy. You need to use the <image> tag with the src attribute. The src attribute adds the URL of the image.

Also, set the height and width of the image using the height and width attribute.


You can try to run the following to work with the animated image in HTML −

Live Demo

<!DOCTYPE html>
      <title>Animated Image</title>
      <h1>Animated Image</h1>
      <img src="">
Updated on 15-Jun-2020 11:02:48