Favicon HTML Code For All Browsers | File

<?php $favicon_path = "/docroot/img/ico/"; ?>
<!-- Default -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico"/>
<!-- For IE6+ -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?><?php echo $favicon_path; ?>favicon.ico" type="image/x-icon">
<!-- For IE6+ -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico">
<!-- For IE6+ -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico" type="image/vnd.microsoft.icon">
<!-- Works in Chrome, Safari, IE -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico">
<!-- Works in Firefox, Opera, Chrome and Safari -->
<link rel="icon" href="<?php echo $favicon_path; ?>favicon.png">
<!-- For IE 6-10 -->
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico"/>
<!-- For all other browsers -->
<link rel="icon" href="<?php echo $favicon_path; ?>favicon.ico"/>
<!-- Different sizes -->
<link rel="icon" href="<?php echo $favicon_path; ?>favicon16.png" sizes="16x16">
<link rel="icon" href="<?php echo $favicon_path; ?>favicon32.png" sizes="32x32">
<link rel="icon" href="<?php echo $favicon_path; ?>favicon48.png" sizes="48x48">
<link rel="icon" href="<?php echo $favicon_path; ?>favicon64.png" sizes="64x64">
<link rel="icon" href="<?php echo $favicon_path; ?>favicon128.png" sizes="128x128">
<!-- For IE -->
<!--[if IE]><link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico"><![endif]-->
<!-- For Modern Browsers with PNG Support -->
<link rel="icon" type="image/png" href="<?php echo $favicon_path; ?>favicon.png">
<!-- For rounded corners and reflective shine in Apple devices -->
<link rel="apple-touch-icon" href="<?php echo $favicon_path; ?>favicon.png" />
<link rel="apple-touch-icon" sizes="144Ă—144" href="<?php echo $favicon_path; ?>touch-icon-144Ă—144.png" />
<link rel="apple-touch-icon" sizes="114Ă—114" href="<?php echo $favicon_path; ?>touch-icon-114Ă—114.png" />
<link rel="apple-touch-icon" sizes="72Ă—72" href="<?php echo $favicon_path; ?>touch-icon-72Ă—72.png" />
<link rel="apple-touch-icon" sizes="57Ă—57" href="<?php echo $favicon_path; ?>touch-icon-57Ă—57.png" />
<!-- For Apple devices (fallback @ 144x144 px) -->
<link rel="apple-touch-icon" href="/touch-icon-iphone.png" />
<!-- Favicon without reflective shine -->
<link rel="apple-touch-icon-precomposed" href="<?php echo $favicon_path; ?>favicon.png" />
<link rel="apple-touch-icon-precomposed" sizes="144Ă—144" href="<?php echo $favicon_path; ?>apple-touch-icon-144Ă—144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114Ă—114" href="<?php echo $favicon_path; ?>apple-touch-icon-114Ă—114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72Ă—72" href="<?php echo $favicon_path; ?>apple-touch-icon-72Ă—72-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="57Ă—57" href="<?php echo $favicon_path; ?>apple-touch-icon-57Ă—57-precomposed.png">
<!-- For Apple devices (fallback @ 144x144 px) -->
<link rel="apple-touch-icon-precomposed" href="<?php echo $favicon_path; ?>touch-icon-iphone-precomposed.png">
<!-- For Windows 8 -->
<meta name="msapplication-TileColor" content="#D83434">
<meta name="msapplication-TileImage" content="<?php echo $favicon_path; ?>tileicon.png">
view raw favicon.php hosted with ❤ by GitHub

4 comments:

  1. Your way of telling informative is quie innovative. I would love to read more and implement these coding on my chrome browser.
    Web Design and Development Company

    ReplyDelete
  2. This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. teknisk analys aktier

    ReplyDelete
  3. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... lära sig teknisk analys

    ReplyDelete
  4. This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. teknisk analys aktier

    ReplyDelete

Note: only a member of this blog may post a comment.