How to add favicon in your title bar of website

How to add favicon in your title bar of website

The syntax follows down:
<link rel=”icon” type=”image/icon” href=”images/favicon.ico” />
and one more
<link rel=”icon” type=”image/x-icon” href=”images/favicon.ico” />
thanks for reading !