Image Linking in HTML

In HTML, you can link an image using the <a> (anchor) tag wrapped around the <img> (image) tag. This allows users to click the image to open a URL or another page.

Example:

<a href="https://www.example.com">
    <img src="image.jpg" alt="Clickable Image" width="200">
</a>

Linking to a Larger Image (Thumbnail to Full Size)

<a href="large-image.jpg">
    <img src="thumbnail.jpg" alt="Click to View Larger Image" width="100">
</a>

Programs

HTML program segment that contains hypertext links from one document to another

View Solution


Create a hyperlink in html which when clicked links to www.google.com in a new window

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad