HTML <link> with sizes Attribute

You are Here:

HTML <link> with sizes Attribute

The sizes attribute specifies the size of the linked resource.

Note: The sizes attribute works only with rel="icon".

Example

HTML Online Editor
<!DOCTYPE html> <html> <head> <link rel="icon" href="/favicon.ico" type="image/png" sizes="16x16"> </head> <body> <p>Displays favicon in your browser tab.</p> </body> </html>

Attribute Value

ValueExplanation
Height x WidthSpecifies the size of the linked resource. Works only with rel="icon".
anySpecifies the favicon can be scaled to any size i.e) SVG as favicon with type="image/svg+xml".

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author