Question · HTML and CSS course · Module 2: The Web and HTML Elements
Image as a Link
How do you make an image open another page when clicked?
Answer options
- Add an href attribute to <img>
- Put <img> inside <a href="...">
- Put <a> inside <img>
- Add a link attribute to <img>
Show the answer
Correct answer:
- Put <img> inside <a href="...">