html image, image not showing on html file |
html image, image not showing on html file |
Leo |
Nov 26 2008, 05:48 PM
Post
#1
|
Group: Members Posts: 4 Joined: 26-November 08 Member No.: 7,199 |
I could really use anyones help right now! I made this html document for a class and everything seems to appear fine except the image. I am supposed to compress the image and html document before submitting. The image appears fine on the page, but once I compress the files it shows a box with a red x. I pulled the image from my personal pictures and renamed it. can anyone help, please.
|
Darin McGrew |
Nov 26 2008, 06:45 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
There is general advice in the FAQ entry Why are my images coming out all wrong or not loading?
For more specific advice, you'll need to post the URL (address) of a document that demonstrates the problem. |
Leo |
Nov 26 2008, 07:20 PM
Post
#3
|
Group: Members Posts: 4 Joined: 26-November 08 Member No.: 7,199 |
I pasted a copy of my html doc, I am not sure if I can provide you with a URL address since I have the doc saved in a flashdrive. Do you see anything wrong?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title> My Web Page</title> </head> <body> <body bgcolor="87cefa"> <p> <p style="font-size:150%;text-align:center">Leuman Vilarino</p> <p> <p style="text-align:center"><img src="me&her.jpg"width="226"height="171"alt="Awhhh!"/> </center> </P> <p style="text-align:center"><A HREF="mailto:vilalm@mail.broward.edu">Email</A></p> <hr width="40%"> <p> <p style="text-align:left;font-size:110%"><strong>Academic Goals:</strong></p><p>My current academic goal is to get a Associate in Science in Professional Pilot Technology. It has been my life long dream of becoming an airline or corporate pilot. The degree program consists of 64 credits to graduate, which I plan on achieving within 2 years or less! The program can be divided into four phases, first I must obtain my private pilots license. The next step is the instrument rating which will allow me to safely fly in abnormal weather conditions, by navigational instruments as my only reference to the outside world. Third I must build my flight time up to 190 hours to qualify for a commercial pilot certificate, which will allowme to get paid for flying. The final phase is to become a Certified Flight Instructor (CFI), which I will use to build enough time to someday get hired by an airline.</p> <p> <p style="text-align:left;font-size:110%"><strong>Career Goals:</strong></p><p>My career goal is to someday have the opportunity to fly for <A HREF="http:// fedexairops.com/our-technology.php">FedEx</A>. FedEx is considered the top of the latter when it comes to aviation. It is by far the most successful airline and one of the strongest corporations in the world. Most pilots dream of landing a job with FedEx, but it is easier said than done. FedEx only hires a handful of pilots every so often, but who is to say that I cant be one of those handful? I can only hope that with my determination, and training received will be enough to get me there.</p> <p> <p style="text-align:left;font-size:110%"><strong>Person I Admire?:</strong></p><p>I think that if I had the opportunity to be someone that I admire I would have to say the <A HREf="http://www.first-to-fly.com/History/Wright%20Story/wright%20story.htm">Wright Brothers</A> either one, only because they lived in the most influential period of aviation, and of course because they made the way possible for people like me to have a dream. They were both also very smart and determined. It probably was a very exciting time for them and aviation during that period and I can only imagine their excitement when they accomplished flight. And of course they were very successful for quite sometime, and their name will remain part of our world history.</p> <hr width="40%"> </body> </html> |
Darin McGrew |
Nov 26 2008, 10:34 PM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
CODE <img src="me&her.jpg" That's a poor name for a file, because the & character has special meaning in HTML. If that must be the name of the file, then you should useCODE <img src="me&her.jpg" in your HTML.So where is the image relative to the HTML document? What is the image named? Is it really "me&her.jpg" or is it named something similar? It's hard to say anything more specific without seeing the actual document (not copy-pasted markup, but the URL of a real document). Our online validator (see links at top and bottom of this page) reports markup errors, starting with a broken doctype declaration that could be throwing browsers into quirks mode. |
Leo |
Nov 28 2008, 11:11 AM
Post
#5
|
Group: Members Posts: 4 Joined: 26-November 08 Member No.: 7,199 |
I renamed the image "two" and chnged it on the html doc. as well. Both the image and html doc are located on my flash drive in the same older. The url address is file:///G:/Vilarino%20E&I%20Work/Leuman_Vilarino.html. I mentioned I can view the image in the browser but once I zip the doc. and image, is when I am unable to view it.
|
Leo |
Nov 28 2008, 05:53 PM
Post
#6
|
Group: Members Posts: 4 Joined: 26-November 08 Member No.: 7,199 |
I tried validating the html doc and i received this message,
Line 1, character 50: ... C "-//W3C//DTD HTML 4.01//EN"http://www.w3.org/TR/html4/stri ... ^Error: name start character invalid: only delimiter >, delimiter [, system identifier and parameter separators are allowed Line 1, character 50: ... C "-//W3C//DTD HTML 4.01//EN"http://www.w3.org/TR/html4/stri ... ^Error: cannot continue because of previous errors |
pandy |
Nov 28 2008, 09:07 PM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Are you saying you are trying to view the page while it's still zipped? I mean, do you just click on the zip and then click on the HTML doc in the list the zip program presents you with? That won't work. When you do that the file you are viewing is extracted to a temp folder (look at the browser's address bar) and the other files aren't, so the image path won't lead to anything. You need to unzip all the files to a folder somewhere first and so does your teacher.
|
Darin McGrew |
Nov 29 2008, 01:54 PM
Post
#8
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Your doctype declaration is broken. Copy a correct one from Choosing a DOCTYPE.
|
Lo-Fi Version | Time is now: 24th April 2024 - 02:43 PM |