I'm trying to add a favicon to my url-bar. But it's not showing up, I'm sure the path is correct because when I use it as a normal image it does show up. Here is the html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> title </title>
<link href = "styles.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/png" href="../images/favicon.png">
First, try to give the full URL istead. For example "http://localhost/mysite/images/favicon.png"
(adapt it to your configuration, actually)
Otherwise, on my site, this works:
<link rel="shortcut icon" href="images/favicon.ico" />
Try to:
./images
instead of ../images
? Try to give the full URL otherwise. For example "http://localhost/mysite/images/favicon.ico"
. use <link rel="icon" type="image/png" href="../images/favicon.png">
See W3C howto.
However, the format for the image you have chosen must be 16x16 pixels or 32x32 pixels, using either 8-bit or 24-bit colors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With