How to put logo in website title?

On the different websites, they use icons in the title bar which is visible in a browser tab. Inserting a logo icon in the title is the best practice for search engine optimization (SEO).

 In this tutorial, we are going to close the look to insert the logo icon in the website address. To insert the logo in the title we use the link attribute.

Example: 


<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />

  <title>
    Htlspacecode.com
  </title>

  <!-- Add your custom image -->
  <link rel="icon" href="https://www.htmlspacecode.com/favicon.ico"
   type="image/x-icon">

</head>

<body>
  <h1>
    htmlspacecode.com 
  </h1>

  <p>
   Example :  htmlspacecode icon is in the title bar
  </p>
</body>

</html>


how to image in title




Reactions

Post a Comment

0 Comments