Web Design Fundamentals · Spring 2026
my-favicon/ folder in your repo<head>, and verify it works liveA favicon is the small icon that appears in browser tabs, bookmarks, and mobile home screens. This assignment walks you through creating and implementing one.
my-faviconWhat you get: Multiple file formats (.ico, .png, .svg, .webmanifest) for different browsers and devices.
index.html), create a folder named my-faviconmy-favicon/ folderOpen your index.html and paste this code generated for you by Real Favicon Generator inside the <head> section:
NOTE!!! You will need to remove the forward slashes for the code to work. Go from href="/my-favicon/favicon-96x96.png" to href="my-favicon/favicon-96x96.png"
<!-- Favicon -->
<link rel="icon" type="image/png" href="my-favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="my-favicon/favicon.svg" />
<link rel="shortcut icon" href="my-favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="my-favicon/apple-touch-icon.png" />
<link rel="manifest" href="my-favicon/site.webmanifest" />
Placement example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your Site</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="my-favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="my-favicon/favicon.svg" />
<link rel="shortcut icon" href="my-favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="my-favicon/apple-touch-icon.png" />
<link rel="manifest" href="my-favicon/site.webmanifest" />
<link rel="stylesheet" href="styles/main.css">
</head>
index.html)Add favicon with cross-browser supportmy-favicon/ folder exists with all files<link> tags are in your <head>If favicon doesn't appear, do a hard refresh (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows). Browsers cache favicons aggressively.
Submit two things:
Why so many files? Different browsers and devices prefer different formats. The generator creates optimized versions for Safari (.svg), Chrome (.png), iOS home screen (.apple-touch-icon), etc.
The my-favicon/ path: The leading slash (when used in your repo) means "start from root directory." This ensures links work whether you're on index.html or week-7/some-page.html. However, remove the leading slash for local testing.
Hard refresh if testing locally: Your browser might show an old cached version. The hard refresh forces it to fetch the new icon.