how to put a logo in webpage? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to put a logo in webpage?

4th Dec 2019, 9:05 PM
arash
3 Answers
+ 3
0 Once you have a logo for your website ready, it's easy. This is the code I use: <link rel="shortcut icon" type="image/x-icon" href="yourLogo.jpg" /> That's it! Hope it helps!
4th Dec 2019, 9:13 PM
iamvinci
iamvinci - avatar
+ 1
Or - Identify the image you want to use. (Be sure you have permission to use the image on your site.) - Modify the image if necessary. (It’s best to resize your images before you use them on the web. You can use commercial image-manipulation software or free programs such as IrfanView and Gimp). - Choose your image type. (If your image is in a format other than web-friendly .jpg, .gif, or .png, use a tool like IrfanView or Gimp to change it to one of these formats). - Put your image in the right place. (Put your image file in the same directory as the HTML file. That way, when you post your page to the server, you can move the image as well). - Build your page as normal. (The image should be placed with a tag embedded into the body). - Use the <img> tag to indicate the image. (Embed this tag inside a <p></p> (paragraph) or <div></div> (division) pair so that the page validates correctly). - Use the src attribute to indicate the file containing the image. (If the image file is in the same directory as the web page, all you need is the name of the image. If the image file is elsewhere on the Internet, you can use a complete URL). - Include an alt attribute that describes the image. (An alt tag is important for visitors who cannot see your image — users with visual impairments, people who have turned off images to increase browsing speed, and search engine bots, which can’t see the images but read alt tags). - End the image tag with a /. (The img tag is a special one-shot tag that doesn’t require (or allow) an end tag. The slash character at the end of the tag indicates this).
4th Dec 2019, 9:17 PM
iamvinci
iamvinci - avatar
0
tanks alot
4th Dec 2019, 9:20 PM
arash