Affiliate link
HTML - Multimedia
There are HTML elements to define multimedia resources such as graphic, video, audio, animation.
HTML Graphic
img element can load different types of image format.
| Image types | Description | Related links |
|---|---|---|
| .apng | Good choice for lossless animation sequences (GIF is less performant). | APNG (Animated Portable Network Graphics) |
| .avif | Good choice for both images and animated images due to high performance. | AV1 Image File Format (AVIF) |
| .gif | Good choice for simple images and animations. | GIF (Graphics Interchange Format) |
| .jpg, .jpeg, .jpe, .jif, .jfif | Good choice for lossy compression of still images (currently the most popular). | JPEG (Joint Photographic Experts Group image) |
| .png | Good choice for lossless compression of still images (slightly better quality than JPEG). | PNG (Portable Network Graphics) |
| .svg | Vector image format. Use for images that must be drawn accurately at different sizes. | SVG (Scalable Vector Graphics) |
| .webp | Excellent choice for both images and animated images. | WebP image |
<img src="/LearnCodeNow.png" />Code result
Affiliate link
Affiliate link
Affiliate link




