Lesson 4: Adding Images and Links

Images

Use the <img> tag to add images. Always include an alt attribute for accessibility.

<img src="photo.jpg" alt="Description of photo">

Links

Use the <a> tag to create hyperlinks to other pages or websites.

<a href="https://example.com">Visit Example</a>

Next Steps

In Lesson 5, we’ll learn how to structure a multi-page website.