New: Complete Beginner's Guide to Coding is now available in Premium
Updated: Indian Govt Exam roadmaps now include salary breakdowns & timelines
Tip: Use the Career Hub to explore all career paths in one place
Tutorials HTML HTML Links & Images

HTML Links & Images

HTML

Links 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
Visit Google

📷 Image: photo.jpg