Navigation
Poll
Would you be an active poster if Ron's Guide had a message board?


Total Votes: 62
Comments: 18 — View
Past pollsPoll idea?
Rate Ron's Guide
Rate our resource at Bigwebmaster.com
Images
Ever wondered how people get images on their webpages? This tutorial will show you how.

There are many types of images, including GIFs, JPGs, PNGs, BMPs, ect. I usually use JPGs and GIFs - Each of these types of images have there own advantages and disadvantages (except for BMPs when it comes to the internet you should never use these because of their huge file sizes compared to JPGs and GIFs). There are many places you can download images or you can create you own either way you can put the images on your website using HTML.


Adding an image

To add an image to your website use the <img> tag.

Basic Outline: <img src="URLofimage">...

Example: <img src="http://ronsguide.com/images/88x31.gif">

Result:


Making an image a link

To make the image a link, just use this:

<a href="URL"><img src="URL of Image"></a>

Example: <a href="ronsguide.proboards18.com"><img src="http://ronsguide.elixant.com/images/88x31.gif"></a>

Result:

Note: If you don't want the border around the image put border="0" in the <img> tag. (I.E. <img src="URL of Image" border="0">), You can also make the border bigger, It's up to you. Smile


Using title

You can add a discription that shows when the user puts his/her mouse of the image by using the title attribute...

Example: <img src="tongue.gif" title="A picture of me!">

Here's how it'll look in your browser, put your mouse over the image...


Resizing an image

To change the size of images use the height and width attributes

Example: <img src="blahblah.gif" width="75%" height="50%">
(you can also specify the size using pixels width="100" height="150")

Discuss Tutorial: Images 14 Comments
Comment by Ron on Mar 16, 2004, 4:13 am
Please post questions or comments about this tutorial below. Smile
Comment by Haldred on Jun 20, 2004, 12:24 am
Good good, I already knew this <img src="tongue.gif">
But whatever. Tongue Tongue
Comment by Viper on Nov 14, 2004, 10:16 pm
Great Tutorial. You can bet I'll be using this one... Laughing
Comment by Shadow on Jan 7, 2005, 10:00 pm
Great to know! But how do i add templates and backround images!? Sad
Comment by Sheena on Feb 27, 2005, 8:17 am
How do you put the image at the corner of the page, like, on the top left?
Comment by nth on Jul 1, 2005, 11:59 pm
u see hw we put image from our com...
Comment by Anna on Jul 31, 2005, 9:23 pm
how do i chose the color of the border from the image? can i write something like this?:
<img border=2 color="red" src="/image.jpg">
Comment by Tommy Armstrong on Aug 4, 2005, 1:29 am
Undecided
Say you were making a background, how would you tile the image?
Comment by Emperior Eric on Sep 6, 2005, 8:01 pm
You have to use CSS to do background images.
Comment by Samatha on Sep 24, 2005, 11:47 am
I want to insert image but how would i do it.. pls. reply. also where will i input that text in notepad.

« Previous [ 1 2 ] Next »
Post a comment
Sorry, you must be a registered member to post comments.

If you would like to register, you can do so here.
If you already have an account, please login.