Sunday, February 5, 2023

How to add favicon to your html page

How to add favicon to your html page

How to add favicon to your html page

  • Create a favicon file say myfav.ico and add it to some location in project say assets/myfav.ico
  • Import the above in the head section of your html page
<!DOCTYPE html>
<html lang="en">

<head>
    <link rel="icon" type="image/x-icon" href="assets/myfav.ico">
</head>
<body>
<div>Demo'ing the Favicon!</div>
</body
  • The favicon is now ready to be displayed on the browser.




  • Please do like and follow our facebook page here
  • For more queries, feel free to e-mail us here
  • Just to let you know, we are an Amazon Associate. To help and support us, you can shop for different products available on Amazon from here

No comments:

Post a Comment

SpringBoot Application Event Listeners

When a spring boot application starts few events occurs in below order ApplicationStartingEvent ApplicationEnvironmentPreparedEvent Applicat...