Icons - how to...
Icons - how to...
well, on a few webpages i have noticed personalized icons. i have absolutly no idea how to do this in html or any other language, so if anyone does know, please could you help me.
Do you mean a favicon?
If you upload the .ico file to your root directory, most browsers should automatically find it when somebody bookmarks your site. If you want to add code to your pages to make sure, you add a line of code in the <head> section:
<LINK REL="SHORTCUT ICON" HREF="http://www.yourdomain.com/name_of_icon.ico">
If you upload the .ico file to your root directory, most browsers should automatically find it when somebody bookmarks your site. If you want to add code to your pages to make sure, you add a line of code in the <head> section:
<LINK REL="SHORTCUT ICON" HREF="http://www.yourdomain.com/name_of_icon.ico">
He could also mean a regular image, do you mean inserting a image into a webpage?
Code: Select all
[img]url[/img]
The correct code is where the type can be image/png, image/jpeg, image/x-icon... depending to your image.
(In fact, the correct value of the rel attribute is just "icon", but the deprecated IE just can't understand...)
Code: Select all
<link rel="shortcut icon" type="type of your image" href="URL of your image" />
(In fact, the correct value of the rel attribute is just "icon", but the deprecated IE just can't understand...)
-
- Posts: 27
- Joined: Fri Dec 02, 2005 3:04 am