HTML <link> 크기 속성

❮ 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 <링크> 태그