set favicon website code example Example: how to add a logo to website icon <head> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> </head>