very basic HTML questions about images

This is a discussion on "very basic HTML questions about images" within the Web Page Design section. This forum, and the thread "very basic HTML questions about images are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 14th, 2006, 11:34
New Member
Join Date: Nov 2006
Location: derbyshire england
Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
very basic HTML questions about images

Hello, I'm brand new to this forum and brand new to HTML, it all looks great.

I'd be so grateful if somebody could help me out with this:

I'd like to include a picture on a webpage. if i save the picture as say cat.gif then should <img src="cat.gif" /> display the image?

or do i need to include where the image is saved?

and do i need the / at the end?

so grateful for help,

Bradley
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 14th, 2006, 12:46
New Member
Join Date: Oct 2006
Location: India
Age: 13
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: very basic HTML questions about images

To Display cat.gif of your webpage, Put <img src="cat.gif">
There is noneed to type the URL of the Image,
aslong as its saved in the Same Folder as the WebPage that you want to display the Picture in!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 14th, 2006, 13:15
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: very basic HTML questions about images

<img src="foo.jpg" alt="Whatever Describes It" width="" height="" />
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 14th, 2006, 17:30
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: very basic HTML questions about images

it dosent have to be saved in the same file you can save it another file but you have totype in the whole path.
Example:
say you have a folder with you site and your index.htm is in that main folder. then you have a sub folder for images, thats where it should be. So your code would look like this...
<img src="images/cat.gif" width="XXpx" height="XXpx">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 14th, 2006, 19:13
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: very basic HTML questions about images

As you are new to this, hopefully you are coding in xhtml in which case yes, you do need the '/' and there should be a space before the '/>' closing characters.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 14th, 2006, 23:32
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: very basic HTML questions about images

Also,

If you have your site listed with a search engine you may want to add a title to your image to help the search engine's crawler...

Code: Select all
<img src="cat.gif" title="cat" />
And then of course specify width, height, etc.

This may be thinking to far ahead, but its good to know when you are looking to get higher up on a search engine's list, and a good habit to get into.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
images

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some HTML programming questions fmpfmpf Web Page Design 1 Apr 15th, 2008 13:25
questions for Learning html sarwan Starting Out 5 Apr 14th, 2008 15:41
The Return of Basic HTML??? ScottR Webforumz Cafe 0 Aug 8th, 2007 13:38
Newbie Question- Basic HTML email method="post" Bagel Web Page Design 4 Aug 18th, 2006 12:03
Basic Web Design Questions mintyguitarman Web Page Design 7 Nov 22nd, 2005 19:13


All times are GMT. The time now is 05:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42