Forum Moderators: phranque

Message Too Old, No Replies

Images from my pc to website?

         

mpossoff

8:54 pm on Aug 18, 2008 (gmt 0)

10+ Year Member



Hi I'm wasn't sure where to post this question.

I have images saved on my desk top that I want to put in my website using alt tags/alternative text.

How do I get the images from my pc to my site so that I can use alt tags?

Currently with what I'm using I'm able to upload images but without alt tags. I just click on the image I want to upload from my image library and upload it. The problem is it's not 'html' per say.

I'm a layman with web design and this is a problem I need to fix.

Marc

phranque

9:58 pm on Aug 18, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



typically if you want to display an image on a web site, you create an HTML document that displays the image using a markup language element called an IMG tag, which includes an ALT text attribute:
[w3.org...]

mpossoff

10:44 pm on Aug 18, 2008 (gmt 0)

10+ Year Member



Ok I understand that I can do it this way with a link....

Let's say I wanted the Webmaster World .com image on my site, I can do...

<img src="http://www.searchengineworld.com/gfx/logo.png" alt="logo">

The above would using it by means of a link within, correct?

Now let's say I saved image on my site. How could I do this without using a link?

Marc

jbinbpt

11:11 pm on Aug 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not understanding how the image gets uploaded. Do you have an application that does this?

mpossoff

11:24 pm on Aug 18, 2008 (gmt 0)

10+ Year Member



What I can do is upload images into my image library.

Then I'm able to upload an image from the library on my page.

The problem with doing it this way, I'm getting missing alt tags. From what I can see the image is just an image with no description. The only way I can solve this problem is html like I posted from above.

Again, let's say I have a picture of myself saved in my pc.

How do I incorporate that image within...

<img src=" " alt="Marc Possoff">

Again the picture is saved on my desk top as an example. I have to insert something between the " ".

Marc

phranque

1:16 am on Aug 19, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you have to provide a url to the image.
you could provide a relative url, such as:
src="images/marc.jpg" where images is a directory in your root document directory.
or you could provide an absolute url, such as:
src="http://example.com/images/marc.jpg" where example.com is the domain hosting the image and images is a directory in the root document directory for that domain.
if the picture is saved to your desktop, it is probably not being served through your http server and will only work locally on your pc.
in this case the absolute path looks more like this:
src="file:///C:/my/local/images/marc.jpg"

[ietf.org...]