link rel="shortcut icon" href="favicon.ico" - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link

Introduction

Adding a Favicon Using a link Element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
   </head> 
   <body> 
      <p>
          I like 
         <code id="myId">HTML</code>
          and CSS. <!--   w ww  .  j  a va 2 s.  com-->
      </p> 
      <a href="http://java2s.com">Visit java2s.com</a> 
      <a href="page2.html">Page 2</a>  
   </body>
</html>

Related Tutorials