HTML <リンク>サイズ属性

❮HTML<リンク>タグ

指定されたサイズのアイコン:

<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">

定義と使用法

このsizes属性は、ビジュアルメディアのアイコンのサイズを指定します。

この属性は、の場合にのみ使用されますrel="icon"


ブラウザのサポート

Attribute
sizes Not supported Not supported Not supported Not supported Not supported

構文

<link sizes="HeightxWidth|any">

属性値

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:

  • <link rel="icon" href="favicon.png" sizes="16x16" type="image/png"> (1 size)
  • <link rel="icon" href="favicon.png" sizes="16x16 32x32" type="image/png"> (2 sizes)
any Specifies that the icon is scalable (like an SVG image)

Examples:

  • <link rel="icon" href="icon.svg" sizes="any" type="image/svg+xml"> (any size)

❮HTML<リンク>タグ