HTML <link> sizes Attribute
Example
Icon with specified size:
<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">
Try it yourself »
Definition and Usage
The sizes attribute specifies the sizes of icons for visual media.
This attribute is only used if rel="icon".
Browser Support
Attribute | |||||
---|---|---|---|---|---|
sizes | Not supported | Not supported | Not supported | Not supported | Not supported |
Differences Between HTML 4.01 and HTML5
The sizes attribute is new in HTML5.
Syntax
<link sizes="HeightxWidth|any">
Attribute Values
Value | Description |
---|---|
HeightxWidth | Specifies one or more sizes for the
linked icon. The height and width values are separated by an "x" or "X". Examples:
|
any | Specifies that the icon is scalable (like an SVG image) Examples:
|
HTML <link> tag