• Log in or sign up for an account here: https://www.sythe.org/login

Question for Image code (xhtml)

iAsian

Newcomer
Joined
Dec 27, 2008
Sythe Gold
0
Messages
6
As said, for the title.
My question regards the Image code.
Yes I know the code. <img scr="(Image source here)" />

Now my question is, how do I get the source of an image from my computer and put it into the Image code, and for it to appear on the browser?
I've opened the image in my internet browser, and have coped pasted the url of it and it still doesn't seem to work for me when I try viewing the page on a browser.
Currently the code is something like this:
<img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />

Any ideas?

If you're wondering why I don't just upload the image onto a site, it's because I'm doing this for a school competition, and using images provided by the school.

Thanks,
iAsian.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
If the image is in the same folder as the html file, just put the image file name. If the image is in the folder "Pics" that is in the folder that has the html file, but "pics/imagefilename", if the pic is one folder up from the current folder put "/../imagename"... :/
 
If the image is in the same folder as the html file, just put the image file name. If the image is in the folder "Pics" that is in the folder that has the html file, but "pics/imagefilename", if the pic is one folder up from the current folder put "/../imagename"... :/

I've tried it earlier before, and it still doesn't work for me.
The picture doesn't show anything.
I've used google for this problem and cannot find anything.
Thanks for some feedback though.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
is the image saved in the same folder had to html file?
 
Ok, so I've putted the XHTML document and the image into the same folder.
It still shows up the same nothing worked.
When I get home from school today, I'm going to use Dreamweaver and use the img scr code to see what code they use, and to see if it works in the browser.
If you have any other ideas, I'd be more then happy to know.
Thanks,
iAsian.

I just used Frontpage and did insert>images>from file and this is the code it gave me.
<img border="0" src="fitnessx.jpg" width="162" height="200">
And yes, it shows when I look in the browser, but now I'm wondering why that code worked, and not the code I used?
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Ok, so I've putted the XHTML document and the image into the same folder.
It still shows up the same nothing worked.
When I get home from school today, I'm going to use Dreamweaver and use the img scr code to see what code they use, and to see if it works in the browser.
If you have any other ideas, I'd be more then happy to know.
Thanks,
iAsian.

I just used Frontpage and did insert>images>from file and this is the code it gave me.
<img border="0" src="fitnessx.jpg" width="162" height="200">
And yes, it shows when I look in the browser, but now I'm wondering why that code worked, and not the code I used?

because the code you used is not right... i told you the right way... ?
 
because the code you used is not right... i told you the right way... ?

Never mind , I know what I did wrong.
No you didn't help much, most of the information you posted I found googling it before I ever posted this thread.
Thanks anyways,
iAsian.
 
Never mind , I know what I did wrong.
you wrote "file:///" before the path <img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />
the path only would do it...
 
you wrote "file:///" before the path <img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />
the path only would do it...

My problem was that, I wrote the img src code wrong actually.

<img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />

If you can see, I putted Img Scr, it's supposed to be Img Src
 
My problem was that, I wrote the img src code wrong actually.

<img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />

If you can see, I putted Img Scr, it's supposed to be Img Src

ahh, it took a while for me to notice!:p
 
Runescape Gamblingrunescape gambling
Back
Top