Easy Tutorial
❮ Av Prop Audiotracks Att Meta Content ❯

HTML <link> sizes Attribute

HTML <link> Tag

Example

An icon with specified dimensions:


Browser Support

Currently, almost no major browsers support the sizes attribute.


Definition and Usage

The sizes attribute specifies the dimensions of icons for visual media.

This attribute can only be used when the linked resource is an icon (rel="icon").


Differences Between HTML 4.01 and HTML5

The sizes attribute is new in HTML5.


Syntax

Attribute Values

Value Description
HeightxWidth Specifies one or more dimensions for the linked icon. <br>Height and width are separated by an "x" or "X". Examples: <link rel="icon" href="favicon.png" sizes="16x16" type="image/png"> (1 size)<br> <link rel="icon" href="favicon.png" sizes="16x16 32x32" <br> type="image/png"> (2 sizes)
any Specifies that the icon is scalable (e.g., SVG image). Example: <link rel="icon" href="icon.svg" sizes="any" type="image/svg+xml"> <br> (any size)
❮ Av Prop Audiotracks Att Meta Content ❯