Images and Video Worksheet

Problem 1

Find an image and copy it to the 'images' folder that was included in your starter files for this course (the starter files were all put in a folder named 'web-programming'). Then add an IMG element below that displays the image. Make sure to set the alt attribute, and you may set the width attribute if you like.

Image

Sunset
Problem 2

Why is it important to use small file sizes for images (image files that are small in kilobytes)?

Using smaller image file sizes helps websites load faster, saves data, and provides a better experience for users.
Problem 3

If you want an image to have a transparent background, what type of image should it be (what file extension would you use)?

To have an image with a transparent background, you should use an image format that supports transparency. like PNG
Problem 4

What are responsive images?

Responsive Images are images that automatically adjust their size, resolution, and format to fit different screen sizes and resolutions, ensuring they look good and load efficiently on any device.
Problem 5

Find another image and copy it to the 'images' folder. Then add an IMG element below that displays the image. Make sure to set the width and alt attributes. Turn the image into a link by nesting it within an A element. Clicking on the image should open up google.com in a new browser tab.

Image

Road
Problem 6

Find a video on YouTube that you like, and embed it into this page.