Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Set Favicon Size in CSS Rather than HTML Attributes



A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.

You cannot add the size using CSS. The standards do not support adding Favicon size using CSS. Let’s add it using attributes,

<link rel="icon" type="image/png" href="https://tutorialspoint.com/favicon-16x16.png" sizes="16x16">

The result after adding Favicon above will be,

Updated on: 2020-02-25T06:32:28+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements