No websites on 'How to make a favicon' have been working, and I need help coding one

My code:

<DOCTYPE! HTML>
  <html> 
   <head>
    <title>Miles Bordak Creations.Co</title>
    Favicon Code Go Here
    <style>
        body {
        background: #FFFAFB;
        margin: 0;
      }

      #backgroundImage {
        border: none;
        height: 100%;
        pointer-events: none;
        position: fixed;
        top: 4;
        visibility: hidden;
        width: 100%;
      }

      [show-background-image] #backgroundImage {
        visibility: visible;
    </style>
   </head>
 <div>Miles Bordak Creations.Co</div>
<h2>Hello!</h2>
<p>My name is Miles Bordak</p>
<p>I make HTML, C++, and Python creations. This is a link to <a href="http://bit.ly/3m1PJXX">A.I.D.S. Bot</a> that I made in 2023.</p>
<img src="Chess Bot.png">
<style>
p {
	font-family: sans-serif;
	font-size: 19px;
	color: jetblack;
}
</style>
  </html>

     Thanks, Miles Bordak
<link rel="icon" type="image/x-icon" href="image-file">

This script should go in your <head>.
Make sure that the image you are trying to get exists and that nothing is misspelled.
For more information on favicons, go here:

2 Likes

I found how to! Thanks!
-Miles

theres https://realfavicongenerator.net/ if you want an easy and working way of generating favicons

1 Like

2 posts were split to a new topic: How do I add a favicon