How to add a logo to your website? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to add a logo to your website?

I am making an HTML/JS website and I am wondering if you can add an image in the <title> tags, eg. when your on a different tab and it shows a small logo of the website on the tab?? also how do I choose what picture comes up when someone shares my website?

3rd Jul 2018, 12:20 AM
Kyle
Kyle - avatar
7 Answers
+ 5
<link rel="icon" href="icon.png" type="image/gif" sizes="16x16" >
3rd Jul 2018, 12:44 AM
BroFar
BroFar - avatar
+ 4
You are talking about favicon. Which is a small usually 16*16 image provided in a link tag inside head element.
3rd Jul 2018, 12:39 AM
Toni Isotalo
Toni Isotalo - avatar
+ 4
Use the post of BroFarOps for add favicon. And set size more larger. <link rel="shortcut-icon" href="img.ico" type="image/x-icon"> try this👆 also..
3rd Jul 2018, 2:10 AM
Joshua Raison
Joshua Raison - avatar
+ 2
<title> This tag is Strictly For Text</title>
3rd Jul 2018, 12:25 AM
Dlite
Dlite - avatar
+ 2
An image in <title> tags ??? Its favicon ,right.?
3rd Jul 2018, 2:07 AM
Joshua Raison
Joshua Raison - avatar
+ 1
ya, how do i do so?
3rd Jul 2018, 12:40 AM
Kyle
Kyle - avatar
+ 1
<link rel="icon" href="icon.png" type="image/gif" sizes="16x16" >
12th Jul 2020, 3:03 AM
Gwee Jia You
 Gwee Jia You - avatar