2. Next, give the img tag a class attribute named img, set the style tag in the head tag, and set the attribute to ". Img "In the style tab, set the length and height of the picture here, and set the alignment mode of the picture to center alignment. Finally, press CRTL+S to save the file:
3. Open the browser, and you can see the contents of the gif picture in the webpage. The above is the way to display gif images with html tags: