HTML - Basic HTML Part 6

May 5, 2026 3:00pm UTC (Check your timezone)

Theory Workshop

Instructors: Jess, Carmen, and Eda

Basic HTML

Download iCal File

Before this session, please:

During this session, we’ll:

After this session, please:

Instructor notes

Working with Images and SVGs: What Are Common Ways to Optimize Media Assets?

What are media assets: these are the images, videos, sounds or other kinds of media (though Jess can’t think of any other types right now) that you may want to include in your webpages

Optimization: the practice of making something more efficient

Media asset optimization: making the media on your webpages as efficient as possible through

Compression: the technical process of making files smaller, which can sometime impact file quality. This is usually done with a compression tool.

Why do we want to optimize media?
Smaller and more efficient media files:

Image types: Images on the web can be different filetypes. You may have already seen some like .jpg or .gif. Some modern image types like .webp or .avif

Working with Images and SVGs: What Are the Different Types of Image Licenses, and How Do They Work?

Rules like copyright still apply on the web, which means you can’t just use any images (or text, or other kinds of media) that you find on the web.

Licenses: are the rules attached to using a specific piece of software or media

What images can you use on the web: you can use images (or other media) with licenses that allow for reuse, as long as you’re careful to use them in accordance with license requirements

Creative Commons: is an organization that maintains open licenses and is a great resource for learning more about licenses. Let’s look at some of their licenses and the requirements associated with each

Working with Images and SVGs: What Are SVGs, and When Should You Use Them?

SVG (Scaled vector graphics): is an image filetype that allows your image to scale (be resized) without any loss of image quality. They’re most often used for simpler images, like logos.

We can “draw” SVGs by specifying plot lines, paths, curves and how the shapes these draw are filled in.

SVG element: an HTML element that allows us to “draw”

Build a Heart Icon

We’re building all of the lines, points, curves and attributes needed to make our SVG heart inside a SVG element.

The Path element inside our SVG is specifying all of the points, lines and curves that need to be traced to create our heart. Let’s look at the MDN documentation for the Path element to try and see what this does in more detail.

The parser: is the small piece of software build into our browser that can read the instructions we’re giving in our SVG and Path elements, to be able to trace them to make our image