Hello, I’m learning to build a basic site and have a question about adding a GIF image. Do this image format need to be handled differently from a normal IMG tag? Thanks in advance!
@buildinteractiveNov 18.2022 — #Hi Michael, great question. There's nothing additional you need to do for adding a GIF image to your website. Here's example HTML:
<img src="path/to/animated.gif" width="200" height="200" alt="This will display an animated GIF">
Here's a useful IMG Reference doc further explaining the possible attributes for this tag.
Alternatively, you could include your GIF as a background-image via CSS just like other common image files types:
div { background-image: url(path/to/animated.gif); }