Problem with my HTML,CSS...make picture like a link

Problem with my HTML,CSS...make picture like a link
0

#1

I tried what I just know but its not enought…help guys.

</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#"><img src='//discourse-user-assets.s3.amazonaws.com/original/3X/3/c/3c47237055bb6d7d55434a9f85a2c0ae6bfc14e0.jpg'/></a> </p>

#2

You almost had it. To make it into an actual link, you need to add the URL to your anchor tag.

Right now, it’s like this:
<a> <img src="..."> </a>

It should be like this:
<a href="your-url-here"> <img src="..."> </a>


#3

Your code seems to work fine.

Also, to post code, wrap the code block in triple backticks (not single quotes). Like this

```

code block here.

```

#4

In <a href="#">, replace # with the url you want to link the image to.
example. <a href="www.freecodecamp.com><img src="example.com/image.jpg></a>


#5

The href means the link you want people to click into it ,so therefore href should be a link


#6

Thanks guys!!! Iam gonna try it right now.