+ 3
[HTML] How to make a Image that when clicking redirects you to a Link?
Hi! I am Merstty, i am 29 years old and i have a question for my project. How do i make a "Button" but instead of the input button, make it with a image? Anyhelp would be greatful! Thank you and sorry for my bad grammar :)
6 odpowiedzi
+ 1
There is a chance you may still need help. If so here are the attributes needed to complete the task.
Edit: added CSS to give it a button press animation.
https://code.sololearn.com/WPU3o6E38df9/?ref=app
+ 2
Maybe you could simply make the image a link?
<a><img/></a>
+ 2
Inclose the image inside the anchor tags
<a href="your link"> <img src="your image url" alt="image decription"/> </a> and that's it .
+ 1
<a><img></a>
<a href="link.com"><img src="image directory"></a>
0
Lisa there should be no / inside the <img> tag
0
The / in self closing tags is optional. You can use it or leave it out.