Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
How do I display a photo on my web page ? (simple method please)
Old 06-21-2004, 07:15 PM How do I display a photo on my web page ? (simple method please)
Junior Talker

Posts: 3
Trades: 0
I'm at the level of trying to get a very basic web page working. I have the simple text bit ok, but can't quite sort putting a photo on.
I've created and reduced a jpeg to a suitable size and I've saved it into the same folder as my web page. Lets say that the file name I have is something like 'DCS0789'
Could you suggest a simple way for me to get the image on screen, perhaps at a default size if this is possible (and makes sence)
The code that I've seen somewhere involves SRC, IMG, then the file name etc
Don't get me wrong, I haven't just been stabbing at it, but dispite countless attempts, all I get is a tiny white box with a red cross in it.
If anyone can point me closer to what I need, it would be most appreciated, and a brief description of what each part of the code does would be great.

Thanyou all for your time, and previous replies to my trivial problem - got to learn sometime I suppose ! - Cheers - Paul
carpetpaul is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-21-2004, 07:21 PM
Unknown.

Posts: 1,693
Trades: 0
Use the following code...

Code:
<img src="Image_name.jpg" border="0">
Hope this helps

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 06-21-2004, 07:46 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
just to be completely sure of what you are doing visit this.

no offence but google search for "img scr image" works
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 06-22-2004, 03:24 AM Please review what I've done, still struggling ! - ta
Junior Talker

Posts: 3
Trades: 0
I don't doubt that the method you suggest is spot on, however there could be some problem with the location of my photo, it's file name, file type, or the location of the '<IMG' line in the html doc. Not sure if I can post this lot on here, but I'll have a go anyway. Thanks for the help !!

<HTML>
<HEAD>
<TITLE>THIS IS MY FIRST GO AT A BASIC WEB PAGE</TITLE>
</HEAD>
<BODY BGCOLOR="#CCFFCC">
<I><P>I've found a good online tutor which has helped me get
to grips with the most basic operation of html. Things were going well until
I tried to put a photograph on</P></I>
<P>The next step for me is to learn how to put the photo on. I had a photo already in the computer, just a test
, it was called 'DSC1401', I've resized it and saved into the same folder as this page
. The name of the photo does not end '.jpeg', does this matter ?
Please review what I've done, if you could point to the problem, that would be great !</P>
<P><CENTER><B><U>I'VE DECIDED TO PUT THIS IMPORTANT BIT RIGHT IN THE CENTRE !!!</U></B></CENTER></P>
<UL>
<LI>I want to put a photograph on this page
<LI>I have created a photo, and reduced, it's in the same folder I have this page
<LI>Think the file type is a JPEG Image, it's called 'DSC01401'
<LI>I've can't get the image to display
<LI>Can you suggest the correct line of HTML that I need ?
</UL>
<img src="DSC1401" border="0">

<!--Stuck at this point, any help, much appreciated, please insert the line of html or instructions-->
</BODY>
</HTML>
carpetpaul is offline
Reply With Quote
View Public Profile
 
Old 06-22-2004, 05:33 AM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
you are forgetting file type

DSC1401.jpg or DSC1401.gif or whatever the file is ...

just repace "DSC1401" with "DSC1401.jpg" if the file is a JPEG image
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 06-29-2004, 06:04 AM
Average Talker

Posts: 17
Trades: 0
I think u'r problem will be solved if u use the image file name properly as .jpeg etc. One thing more u can take a help with Frontapage in making u'r page.........after that u can check up the html code from there........this can give u the exact help.
__________________

Please login or register to view this content. Registration is FREE
zonelinks is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I display a photo on my web page ? (simple method please)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.03422 seconds with 12 queries