Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML link sizes Attribute

HTML The sizes attribute

HTML link Tag Reference HTML tag

Example

An icon with specified sizes:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost no major browser supports the sizes attribute at present.


Definition and Usage

The sizes attribute specifies the size of the icon 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

  • (2 sizes)
  • | | any | Specifies that the icon is scalable (such as an SVG image).

    Example:

    |

    HTML link Tag Reference HTML tag