Interactive online courses HTML Academy
2026-03-09 14:08 Diff

Muffin realized that there was no “About me” section on his website after a business meeting in Moscow. He has already given an assignment to his coders to create such a page, and we have been instructed to create a gallery with his photos.

We already know that there are links and pictures. Are we able to put one inside the other? Can we make an image become a clickable link?

Of course! To do this, you need to wrap the <img> tag in the <a> tag. For example:

<a href="http://catsby.com"> <img src="cat.png" alt="Muffin"> </a>

Often hyperlinked image are used in galleries, where a smaller version of an image links to a full-size version or to a separate page with that image and a caption.

Now we will try to add hyperlinked images to our selfie gallery that will lead to separate pages displaying the respective photos.