top of page

How to add Image in Title bar in HTML?

The majority of websites add an icon or image logo in the title bar. The icon logo is also called a favicon.

Favicon, which is also known as a URL icon, a tab icon, a shortcut icon, website icon, or bookmark icon, is a file containing one or more small icons, associated with a particular website or web page. Favicon is used in the top left corner of the tab. Favicons are attractive and can be useful for user engagement.


<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

A favicon must have the following characteristics:
  • Favicon.ico is the default name.

  • Size should be 16×16, 32×32, 48×48, 64×64 or 128×128 pixels.

  • Color should be 8 bites, 24 bites or 32 bites.

Depending on the favicon format, the type attribute must be changed:
  • For PNG, use image/png.

  • For GIF, use image/gif.

  • For JPEG, use image/gif.

  • For ICO, use image/x-icon.

  • For SVG, use image/svg+xml.

<!DOCTYPE html> 
    <title>The Tech Platform</title>
    <link rel="shortcut icon" href="">
    <h1 style="color: blue;"> 
      Title bar icon 
      The Tech Platform logo added in the title bar


The Tech Platform


Recent Posts

See All
bottom of page