Guest Long Live Taiwan Posted August 29, 2006 Share Posted August 29, 2006 I'm a newbie learning HTML. When I practice creating html files in a folder on my hardrive I can successfully get jpeg or png image files to show up, but for some reason GIF images always don't work. It doesn't matter if its in the local folder or somewhere else. I figure it must be a simple problem, can some tell me why this is happening? Thanks Link to comment Share on other sites More sharing options...
skym Posted August 29, 2006 Share Posted August 29, 2006 Should work with any type of image, check again the link to see it has the correct path or if there is a typo or something. Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 29, 2006 Share Posted August 29, 2006 You can post the html you used here, so we can help debugging Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Share Posted August 29, 2006 You may need to check that you are using the right extension, because it has to be exact.Some problems that may occur:Using .jpg when your image is .jpeg or visa versa.or...You may be using any of the following:JPEG with jpegJPG with jpgGIF with gifPNG with pngIt is case sensitive you see, it is also the same with .htm, .html, and many others.Has this worked?Edit: It is also worth noting that htm and html are not intercangable as with jpg and jpeg. Link to comment Share on other sites More sharing options...
reportingsjr Posted August 29, 2006 Share Posted August 29, 2006 holmed, what you are saying seems wrong to me...jpg and .jpeg are both accepted, also they can be either all caps or all lowercase..Also, .htm and .html are the same exact thing, but when the .htm extension came out they shortened it to the standard for that time, which was 4 characters, the first being a period. They are both accepted as a standard, and unless someone changes the setting for it they will stay that way. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Share Posted August 29, 2006 holmed, what you are saying seems wrong to me...jpg and .jpeg are both accepted, also they can be either all caps or all lowercase..Also, .htm and .html are the same exact thing, but when the .htm extension came out they shortened it to the standard for that time, which was 4 characters, the first being a period. They are both accepted as a standard, and unless someone changes the setting for it they will stay that way.Im not saying they are different, I am just saying that when coding, you have to use the same one when linking to it. Do you get me? And when inserting a picture, the extention has to be exactly the same, so it has to be the same case and not .htm when the file really is .html, do you see what im saying?Personally I use .html, .jpg and I never use uppercase extensions, to aviod any confusion. Link to comment Share on other sites More sharing options...
skym Posted August 29, 2006 Share Posted August 29, 2006 holmedwa04 is right, the path and file names must be exact. "image.jpg" and "Image.jpg" are two different files on a server. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Share Posted August 29, 2006 holmedwa04 is right, the path and file names must be exact. "image.jpg" and "Image.jpg" are two different files on a server.Thankyou Link to comment Share on other sites More sharing options...
justsomeguy Posted August 29, 2006 Share Posted August 29, 2006 Actually, it depends on the server. Windows servers are not case-sensitive, but most other servers are. Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 29, 2006 Share Posted August 29, 2006 It is a good practice to stay strict, and even handle files case sensitive even the server doesn't. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now