Home html One Favico for the entire site

One Favico for the entire site

Author

Date

Category

Help please, I need not to insert the icon on each page, but simply put the tag. I have such a code, and does not work!

& lt; head & gt;
& lt; link REL = "icon" href = "images / favicon.ico" type = "image / x-icon" & gt;
& lt; / Head & gt;

Answer 1

@ Sasha Osipov , you, in my opinion, do not even understand the foundations of HTML:

1 Mandatory HTML Page Structure:

& lt;! doctype HTML & GT;
& lt; html & gt;
  & lt; Head & gt;
   .. Do not display tags ..
  & lt; / Head & gt;
  & lt; Body & gt;
  .. Displayed tags ..
  & lt; Body & gt;
& lt; / html & gt;

2 in the & LT; HEAD & GT; Tags are placed (for example, MEATA) that affect the page processing, but not to its contents (for example, the coding of the page of its styles), for example:

& lt;! doctype HTML & GT;
& lt; html & gt;
  & lt; Head & gt;
   & lt; Meta Charset = "UTF-8" & GT;
   & lt; title & gt; page title & lt; / title & gt;
  & lt; link REL = "icon" href = "images / favicon.ico" type = "image / x-icon" & gt;
  & lt; / Head & gt;
  & lt; Body & gt;
   & lt; p & gt;
    Paragraph
   & lt; p & gt;
  & lt; Body & gt;
& lt; / html & gt;

p.s
Read here

upd :
I understand what you want. If you have Apache, then google Favicon in Apache


Answer 2

in no way. This is HTML, and for this for each page you need to insert the same icon.


Answer 3

Two options:

1) Remove this tag at all, and Favicon.ico file transfer to the site root, all default browsers are looking for Favicon in the root folder.

2) in the tag, where the path to the file, in front of the images, add a slash, now Favicon.ico is not searched for not from the root, but from the current section. Tobish, for example, on the page http://site.ru/ browser is looking for an icon in http://site.ru/images/favicon.ico And on the internal page of the http: / /Site.ru/articles / Icon is looking for on the way http://site.ru/articles/images/ Favicon.ico

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions