Home » Html » How do I get my page title to have an icon?

How do I get my page title to have an icon?

Posted by: admin November 29, 2017 Leave a comment

Questions:

I would like to have my site’s logo shown in the icon area of the title rather than the default white document. Exactly as Stack Overflow has it.

Answers:

add this to your HTML Head.
Of course the file “favicon.ico” has to exist.
I think 16×16 or 32×32 pixel files are best.

Regards.

Questions:
Answers:

this is an interesting question so let check it
if you have a image for use as a website-icon then

Add this to your script

   <link rel="icon" type="image/gif" href="animated_favicon1.gif" />

otherwise if you have a icon for your website icon then you chose

 <link rel="shortcut icon" href="favicon.ico" />

I always use http://www.iconspedia.com/ for more icons

if my answer solved your problem then give me vote
ok

Questions:
Answers:

They’re called favicons, and are quite easy to make/use. Have a read of http://www.favicon.com/ for help.

Questions:
Answers:

Apparently you can use this trick.

<title>? My title</title>

That icon-alike is actually a text.

Questions:
Answers:

According to w3school:

<link rel="icon" href="your_icon"/>