User Help Web Pro

In , is the sizes attribute required or optional?

I note that in the WHAT-WG section on:

link rel="icon"

Every icon referenced includes a sizes attribute:

<link rel=icon href=favicon.png sizes="16x16" type="image/png">
<link rel=icon href=windows.ico sizes="32x32 48x48" type="image/">
<link rel=icon href=mac.icns sizes="128x128 512x512 8192x8192 32768x32768">
<link rel=icon href=iphone.png sizes="57x57" type="image/png">
<link rel=icon href=gnome.svg sizes="any" type="image/svg+xml">
<link rel=stylesheet href=lsforums.css>


But, to my knowledge, the sizes attribute has never been compulsory.

However, now that I’m trying to find an authoritative source confirming the sizes attribute is optional, I cannot.

In <link rel="icon">, is the sizes attribute required or optional?

I am specifically looking for an authoritative source – thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *