images

D

dave

Many apologies if I am posting to the wrong group ....direction to
appropriate group would be appreciated!
I have just started to use html and am currently starting to produce a web
page however I am struggling to get my browser to load images. I have copied
the guiding text to the letter and even tried to load a sample html doc from
the supporting website with no images viewable! On the page where the image
should be there is a small red cross and reference in the properties to the
image. I am using IE version 6 and have no problems in viewing web pages on
the net. thanks in anticipation.
 
D

David Dorward

dave said:
I have just started to use html and am currently starting to produce a web
page however I am struggling to get my browser to load images. I have
copied the guiding text to the letter and even tried to load a sample html
doc from the supporting website with no images viewable! On the page where
the image should be there is a small red cross and reference in the
properties to the image.

So there is an image element, but no src attribute containing the URL to an
accessible image.

Beyond that we can't say much.

Try providing a URL.

It might be worth pointing out that most webservers run some flavour of UNIX
or Linux and have case sensitive filesystems (so "foo.jpeg" and "Foo.jpeg"
will be mapped to different files).
 
D

dorayme

dave said:
Many apologies if I am posting to the wrong group ....direction to
appropriate group would be appreciated!
I have just started to use html and am currently starting to produce a web
page however I am struggling to get my browser to load images. I have copied
the guiding text to the letter and even tried to load a sample html doc from
the supporting website with no images viewable! On the page where the image
should be there is a small red cross and reference in the properties to the
image. I am using IE version 6 and have no problems in viewing web pages on
the net. thanks in anticipation.

If the folder in which the yourPage.html resides also has the
image(s) you want, make sure the html has at least this to make
the pics appear:

<img src="theImage.jpg">

If the folder has a further folder within called "pics" (say),
and you put theImage.jpg inside this folder, you will need to
write the instruction to exhibit the image like this:

<img src="pics/theImage.jpg">

If the situation is different to these two cases, it gets more
complicated and you will have to learn about file system
hierarchy, referring back and forward to where things are and so
on... It is a lot of fun.

(other - more evangelical types (God bless them) - will tell you
what else you should put in the <img ...>. But what I have told
you should make the images appear at least. Make sure you put the
right extension in the name of the picture. E.g. if it is a gif,
put .gif on the name. If you are working on some
want-to-hide-your-extensions OS, this could be a point of
confusion.)
 
D

David Dorward

dorayme said:
If the folder in which the yourPage.html resides also has the
image(s) you want, make sure the html has at least this to make
the pics appear:

<img src="theImage.jpg">

In HTML 4.01 (about a decade old now), the alt attribute became mandatory.
 
D

dorayme

David Dorward said:
In HTML 4.01 (about a decade old now), the alt attribute became mandatory.

But surely not so mandatory that the pics would fail to appear if
left out? Was this not the problem? One thing at a time please
gentlemen...
 
S

SEOSpecialist

dorayme said:
If the folder in which the yourPage.html resides also has the
image(s) you want, make sure the html has at least this to make
the pics appear:
<img src="theImage.jpg">

In addition to David's comment, may I also point out that with the
advent of XHTML (been around for a fair while now) you should also be
closing the tag. However I must agree this would not stop the image
from displaying. On my site I often deal with newbie web designers and
9 times out of ten, this turns out to be a filename case issue or not
specifying a folder name where the image resides. You may also wish to
check that you uploaded your images in binary format, not ASCII.

If you have a URL we could look at, then it would be a snap to
troubleshoot.
 
J

Joel Shepherd

SEOSpecialist said:
In addition to David's comment, may I also point out that with the
advent of XHTML (been around for a fair while now) ...

And is still next to useless for being served directly to web browsers
....
you should also be closing the tag.

_If_ one is actually writing XHTML. If one is writing HTML, then for img
and similar elements, the end tag is actually forbidden.
 
J

Jonathan N. Little

In addition to David's comment, may I also point out that with the
advent of XHTML (been around for a fair while now) you should also be
closing the tag.

However OP did not say that he was using XHTML and an ending tag on the
IMG in HTML 4.01 strict is invalid.

http://www.w3.org/TR/html4/struct/objects.html#edef-IMG

Most common problems for Windows users with referenced assets (images,
links, whatever) after upload to server

A) Case insensitive Windows to case sensitive webserver, check filename
s: 'File.ext' 'file.ext' 'file.EXT' are not the same file on most
webservers

B) Path folder character, paths in Windows uses the backslash '\' on on
the web is '/'

C) Dumb WYSIWYG editor has put resource to absolute path on author local
hard drive! (I've seen this one too often to be funny!)

I will repeat what has been said multiple times even within this thread
because the concept seems to be too allusive for folks. A URL please and
then we can actually 'see' what you are doing and do not have to play
Twenty Questions. Do so and I promise someone will be able to precisely
spot the problem.
 
A

Andy Dingley

SEOSpecialist said:
In addition to David's comment, may I also point out that with the
advent of XHTML (been around for a fair while now) you should also be
closing the tag.

No, you shouldn't. It's only appropriate to close the tag if you're
attempting to _be_ XML, not just because you're following the latest
fashions.

Equally the minimized boolean attribute form
<option selected>
rather than
<option selected="selected" >
isn't deprecated either.

Enforce lowercase tag names and quoted attributes if you like --
they're perfectly permitted under SGML/HTML rules. However closing
empty tags in HTML (like <img>) is not just unnecessary, it's actually
_wrong_.
 
S

SEOSpecialist

As the author is a new web designer, I hope you guys are going to be
steering him down the XHTML strict / transitional route, and not older
HTML 4.0

~If you are not steering people this way, then frankly I'm puzzled.

Do you agree in publishing to valid(ated) standards, be it HTML 4, or
an xhtml flavour?

Rob
www.webforumz.com
 
D

David Dorward

SEOSpecialist said:
As the author is a new web designer, I hope you guys are going to be
steering him down the XHTML strict / transitional route, and not older
HTML 4.0

4.01 is recommended more often.

As has been mentioned many times in the past (so use Google Groups to read
the archives if you want the details), XHTML as text/html falls somewhere
between "pointless" and "harmful", while XHTML as application/xhtml+xml to
a default install of Microsoft Internet Explorer results in a prompt to
download the file.
 
D

dorayme

dave said:
Many apologies if I am posting to the wrong group ....direction to
appropriate group would be appreciated!
I have just started to use html and am currently starting to produce a web
page however I am struggling to get my browser to load images. I have copied
the guiding text to the letter and even tried to load a sample html doc from
the supporting website with no images viewable! On the page where the image
should be there is a small red cross and reference in the properties to the
image. I am using IE version 6 and have no problems in viewing web pages on
the net. thanks in anticipation.

Just another thought: your "tried to load a sample doc from the
supporting website with no images viewable! On the page where the
image should be there is a small red cross and ..." is not
totally clear but what you might be doing is looking at a saved
html doc on your own computer that references pictures that are
not on your computer and are unobtainable because either you are
off line or they are not referenced with a full path. In simple
terms, the doc has lost its bearings in the big wide world.

Do you have problems making pictures show when you try to make a
webpage with pics on your own computer and off line?
 
A

Andy Dingley

As the author is a new web designer,

I appreciate your advice here, as it's good to here the newbie opinion.
I hope you guys are going to be
steering him down the XHTML strict / transitional route, and not older
HTML 4.0

Certainly not HTML 4.0, as he ought to be using HTML 4.01

There's no good reason to use XHTML, for nearly every person reading an
alt.* group as their technical guide. It's still not practical to serve
XHTML to the web in general, the rules for doing it correctly (when it
is possible) are far from simple, and the potential benefits are obscure
and only useful to a minority.

So no, I wouldn't recommend XHTML to anyone who doesn't already have an
over-riding benefit to gain from it,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top