Spring Sale! | 20% off ALL ACCESS to One Month ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Hide

How to Add images with HTML

Day 5 ยท Lesson 2 ยท


In this lesson you will learn how to add images to you're HTML project using the (image) tag. The image tag does not have a closing tag. When we add an image with HTML we add the "src" (source) attribute to tell the website where the image is located. And than we add the "alt" (alternative text) attribute to describe the image.

HTML Image 

<img src="cat-image.jpg" alt="Cat Image">

The "src" (source) attribute tells you're code where the image is located.

While the "alt" (alternative text) attribute is used to describe the image.