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.

Happy dog
Problem 2

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

The larger the file size of your photo, the longer it will take to load.
Problem 3

What types of images should be saved as .jpg files, and what types of images should be saved as .png files?

.Jpg files are helpful in storing and sharing digital images. .Png files are mostly used for web graphics, logos, charts, and illustrations, rather high quality photographs.
Problem 4

Most web browsers display images at what resolution (how many ppi)?

Usually set at 72 PPI.
Problem 5

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

.PNG files.
Problem 6

What are responsive images?

Images that are designed to adjust their size and resolution based on the size of the device or screen they aer viewed on. It allows images to look sharper and clear on any screen.
Problem 7

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.

Angry Dog
Problem 8

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