Browser support
Browser | ICO | PNG | GIF | animated GIFs | JPEG | APNG | SVG |
Google Chrome | Yes | 4.0 | 4.0 | No | 4.0 | No | No |
Internet Explorer | 4 | No | No | No | No | No | No |
Mozilla Firefox | Yes | Yes | Yes | Yes | Yes | 3.0 | No |
Opera | Yes | Yes | Yes | Yes | Yes | Yes | 9.6 |
Safari | Yes | 4.0 | 4.0 | ? | 4.0 | No | No |
The following format is cross-browser compatible and is supported by Internet Explorer, Firefox, Chrome, and Opera.
<link rel="SHORTCUT ICON" href="http://www.example.com/myicon.ico"/>
Additionally the following is also acceptable:
<link rel="SHORTCUT ICON" href="/somepath/myicon.ico"/>
The following shows the supported format of link tags, using examples, for HTML and XHTML.
HTML:
<link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico">
<link rel="icon" type="image/png" href="http://example.com/image.png">
<link rel="icon" type="image/gif" href="http://example.com/image.gif">
XHTML:
<link rel="icon" type="image/vnd.microsoft.icon" href="/somepath/image.ico" />
<link rel="icon" type="image/png" href="/somepath/image.png" />
<link rel="icon" type="image/gif" href="/somepath/image.gif" />
Ref:Wikipedia
No comments:
Post a Comment