Interactive online courses HTML Academy
2026-03-09 10:48 Diff

Add an image to the page using what you've learned in the chapter about links and images.

Look at the image and figure out which one from the list you need to use: logo.png, picture.jpg, icon.svg, banner.png, or avatar.jpg.

Next, set the correct size for the image using the width and height attributes.

Important! The image may have both attributes, or it may have only one of them. The size should be a multiple of 20.

This is an additional challenge for reinforcing your image-handling skills.

Solution

The solution to the challenge will be available in a few minutes. Use it if you encounter difficulties. In the meantime, try to complete the challenge on your own.

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Image</title> <link rel="stylesheet" href="style.css"> </head> <body> <img src="picture.jpg" width="400" alt="Picture"> </body> </html>