Skip to main content

# How to include favicon img in title bar locally....?? I am making a HTML page that is unpublished . One of the things I wanted to do was add a favicon to appear next to the title. I'm using google chrome and I noticed that other websites have favicons that appear next to the tile in the browser, but the one I'm trying to display won't show up.The site in in a folder on my desktop named site. This is the code: link rel="shortcut icon" href="/favicon.ico"
Use Following Instruction:- Since you have a leading / in your href, you are referencing a file that will be in the root-folder. In case you have your page in a folder on your computer, not serving it from a local webserver, the leading / will tell the browser to look in the root folder of your filesystem. So the browser expect the file to be at C:/favicon.ico or similar, which is probably not what you've expected. If you have the favicon.ico in the same folder as the web page, you could just remove the leading slash, and the icon should be visible. link rel="shortcut icon" href="favicon.ico"

Comments

Popular posts from this blog

DNA COMPUTING INTRODUCTION

A DNA computer is basically a collection of specially selected DNA strands whose combinations will result in the solution to some problem. Technology is currently available both to select the initial strands and to filter the final solution. The promise of DNA computing is massive parallelism: with a given setup and enough DNA, one can potentially solve huge problems by parallel search. This can be much faster than a conventional computer, for which massive parallelism would require large amounts of hardware, not simply more DNA.

Step To Host Local Custom Wordpress Site (i.e from Xampp in My case) to AMAZON EC2 instance.

1. Create AWS account and create ec2 instance for same as follows: -> select Linux AMI ->t2.micro ->security groups must be http,secure group and custom tcp (3306 for mysql) ->key generate(.pem file) -> launch instances 2. on windows create .ppk file from pem using puttygen 3. login to your instance using putty host - ec2-user@xxxxxxxxxxxxx user - ec2-user ssh(auth)-ppk file connection ---> Success 4. after successful login perform these commands > [ec2-user ~]$ sudo yum update -y > sudo yum install -y httpd24 php70 mysql56- server php70-mysqlnd > sudo service httpd start > sudo chkconfig httpd on > chkconfig --list httpd > ls -l /var/www >  sudo usermod -a -G apache ec2-user > sudo chown -R ec2-user:apache / var /www > echo " <?php phpinfo(); ?> " > /var/www/html/phpinfo.php > http:// my .public .dns .amazonaws .com /phpinfo.php > sudo yum list installed httpd24 php70 mysql56-s...