Horje
HTML sizes Attribute

Definition and Usage

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

This attribute is only used if rel="icon".


Applies to

The sizes attribute can be used on the following element:

Element Attribute
<link> sizes

Browser Support


How to add Icon with specified size - HTML sizes Attribute

Note: The sizes attribute is not currently supported in any of the major browsers.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
  <link rel="icon" href="https://horje.com/avatar.png" type="image/png" sizes="16x16">
</head>
<body>

<h2>Hello world!</h2>
<p>Open this page in a <a href="https://horje.com" target="_blank">new window</a> to see the favicon.</p>
<p><b>Note:</b> The sizes attribute is not currently supported in any of the major browsers.</p>

</body>
</html>

Output should be:

How to add Icon with specified size - HTML sizes Attribute




html sizes attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference