What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » HTML Pics

HTML Pics
Author: Message:
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. HTML Pics
How do I put a image/picture into HTMl im confused with the filename. eg my file is called Guy.jpg I put that in but the image doesn't show up plz help
If the worst comes to the worst eat a cake makes you feel better!
05-21-2006 08:51 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: HTML Pics
<img src="guy.jpg">


05-21-2006 08:52 PM
Profile PM Web Find Quote Report
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: HTML Pics
Just a note to add to Stigmata's comment...   Depending on the web server you are uploading this to, file names may be case sensitive. 

In other words, "Guy.jpg", "guy.jpg" and "Guy.JPG" would not typically be treated as equal by a Unix based server (while they are equal on your Windows computer).  Always use the same case and capitalization as your file name.
05-21-2006 11:20 PM
Profile E-Mail PM Find Quote Report
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. RE: HTML Pics
Also I put the picture in a file called IMAGES in a file called website and I put Guy.JPG but it still doesnt work
If the worst comes to the worst eat a cake makes you feel better!
05-22-2006 03:43 AM
Profile E-Mail PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: HTML Pics
<img src="images/Guy.JPG">
05-22-2006 03:47 AM
Profile E-Mail PM Find Quote Report
Vilkku
Veteran Member
*****

Avatar

Posts: 1411
Reputation: 27
35 / Male / Flag
Joined: Mar 2003
RE: HTML Pics
to be on the safe side, you can type in the whole path of the image. Let's say your html file is in http://www.uberleethost.com/welshboy/ and that your image is in http://www.uberleethost.com/welshboy/IMAGES/.
With this you have two options:
1) (the one Supersonicdarky wrote)
<img src="IMAGES/Guy.JPG">

2) The whole URL, this works on all pages on all sites
<img src="http://www.uberleethost.com/welshboy/IMAGES/Guy.JPG">
[Image: signature.php]
05-22-2006 04:22 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: HTML Pics
Quick but major tip: never use mix case in filenames and directories, always use lowercase names (and try to avoid spaces)!

This post was edited on 05-22-2006 at 09:58 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-22-2006 09:58 AM
Profile PM Find Quote Report
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: HTML Pics
Also, if you want to be really accurate (not sure if this applies) but the standard XHTML specs (I don't know if it appears in the HTML4.0 spec) say that you should include an alt= text for non-graphical browsers, or if the image isn't found.

For example:
code:
For HTML 4.0 Transitional:
<img src="picture.jpg" alt="This is a picture">

For XHTML 1.0:
<img src="picture.jpg" alt="This is a picture" />

Although... you probably won't have an idea what I'm on about... adding the alt= text can also help find if it's your code or the location of the picture which is in error - if there's no text or picture, it's the code, if there's text then the picture can't be found.
[Image: AndrewsStyle.png]
05-22-2006 12:05 PM
Profile E-Mail PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
RE: HTML Pics
quote:
Originally posted by CookieRevised
(and try to avoid spaces)
Or if you really need to use spaces, you should use them like this:
code:
<img src="this+is+a+picture.jpg" alt="picture" />

Or:

code:
<img src="this%20is%20%a%20picture.jpg" alt="picture" />

Both of these should be XHTML valid.

This post was edited on 05-22-2006 at 01:57 PM by Mike.
YouTube closed-captions ripper (also allows you to download videos!)
05-22-2006 01:57 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On