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.
|
|
|
|
|
![]() |
||
very basic HTML questions about images
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
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)
|
|
#4
|
|||
|
|||
|
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"> |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
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...
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. |
![]() |
| Tags |
| images |
| Thread Tools | |
|
|
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 |