Skip to content
Justice Tech School

Favicon and Page Icons

A favicon is the small icon shown in the browser tab and in bookmarks. You add it with a link element inside the head.

Use a square image, for example 32 by 32 pixels in PNG or an SVG. Bigger icons can be added for phones and home screens.

Example
<head>
  <title>My site</title>
  <link rel="icon" type="image/png" href="/favicon.png">
</head>

Exercise

Complete the rel value for a favicon.

<link rel="" href="/favicon.png">

Quiz Test

Where does the favicon link element go?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.