favicon in HTML
- A favicon is an image displayed before the title of web page.
- <link> tag with attribute rel="icon" is used to add a favicon on the web page.
Syntax to add favicon:
<link rel="icon" type="image/x-icon" href="./favicon.ico">
Adding a favicon in HTML, example:
<!DOCTYPE html>
<html>
<head>
<title> Geeks Help </title>
<link rel="icon" type="image/x-icon" href="./favicon.ico">
</head>
<body>
</body>
</html>
Output:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG0q6ocNH0CUIUqW-sC6SAlWTiOzMmN9AN9aNnZCsq-PTrPdyK39LFOOTSgravmTK2AxQaECX72KE5zTx92vU8LpV7FaKRx6ZBOv38SCqkTrJ8ONp5OGq13FSfNplSuzotvgwMgauItPJvrLa5Vu5msUriwHJNjYR_8QzBqkz8rxXzTypzVSBwjwsG/s320/fav.png)