HTML Links & Images
HTMLLinks let users navigate between pages. Images make pages visual.
Links
The <a> tag creates a hyperlink. The href attribute specifies the URL.
Images
The <img> tag embeds an image. It has no closing tag. Always include alt text for accessibility.
Example — HTML
<!-- Link -->
<a href="https://google.com">Visit Google</a>
<!-- Image -->
<img src="photo.jpg" alt="A beautiful photo"
width="300">
<!-- Link with Image -->
<a href="https://google.com">
<img src="logo.png" alt="Google Logo">
</a>
Result