how to add a logo to the title in html code example

Example 1: how to add a title picture in html

<link rel = "icon" type = "image/png" href = "name-of-image.png">

Example 2: how to change the logo in the title of a webpage

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- This is how you add your image below --> 
  	<link rel = "icon" type = "image/png" href = "name-of-image.png">
</head>
<body>
  
</body>
</html>

Example 3: how to add title icon in html

<link rel="icon" href="//add image link or image path" type="image/x-icon">

Tags:

Html Example