SYP Start Your Path

Links, Images & Favicon

Links are created with the <a> (anchor) tag. The href attribute tells the browser where it goes.

<a href="https://example.com">Visit Example</a>
<a href="/courses">All Courses</a>
<a href="mailto:someone@example.com">Send an Email</a>
<a href="tel:+911234567890">Call Us</a>
<a href="https://example.com" target="_blank" rel="noopener noreferrer">Opens in new tab</a>

Images

<img> is a self-closing "empty" element — no closing tag needed.

<img src="logo.png" alt="Company logo" width="200" height="100">

Make an image clickable by wrapping it in a link:

<a href="/courses">
  <img src="banner.png" alt="Browse all courses">
</a>

Favicon

The small icon shown in a browser tab, bookmarks, and history:

<head>
  <link rel="icon" type="image/png" href="/assets/img/favicon.png">
</head>