'; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });
Animated images in HTML are an image on a web page that moves. It is in GIF format i.e. Graphics Interchange Format file.
We need to use the <image> tag with the src attribute to add an animated image in HTML. The src attribute adds the URL of the image (file destination).
Also, we can set the height and width of the image using the height and width attribute.
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="description" content="meta tag in the web document"> <meta name="keywords" content="HTML,CSS"> <meta name="author" content="lokesh"> <meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body> <p>Adding Animated Images to the web page</p> <img src="https://tutorialspoint.com/images/html.gif"></body></html>
We can change the height and the width of the animated image using the style sheet.
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="description" content="meta tag in the web document"> <meta name="keywords" content="HTML,CSS"> <meta name="author" content="lokesh"> <meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body> <p> dding Animated Images to the web page</p> <img src="https://tutorialspoint.com/images/html.gif" height="200" width="200"></body></html>