PCWorld Forums

PCWorld Forums: Picture Files - PCWorld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Picture Files

#1 User is offline   newmanddora 

  • Newbie
  • Pip
  • Group: New Member
  • Posts: 1
  • Joined: 14-August 11

Posted 14 August 2011 - 05:33 AM

I have pictures in my Pictures folder in Windows. Some titled something like C6.JPG
I want to reproduce a picture in the HTML section of Ebay.
I know the code is <img src="picture.jpg.">
What I can't figure out is what goes in the plce of picture? I've tried C6.jpg but that does not work.
Any suggestions received gratefully.
0

#2 User is offline   AgentF 

  • Senior Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 856
  • Joined: 22-March 10
  • Location:localhost

Posted 14 August 2011 - 11:18 AM

You first need to upload your picture to an online image host. I don't sell on eBay, so I don't know if they have an image upload function. If not, you can try a free image host like Imageshack, Photobucket, or TinyPic. When you upload a picture, you need to locate the direct URL for the picture. An example would be this:
http://www.mysite.com/image1.png


A URL like this is incorrect because it's not the direct URL of the image:
http://www.mysite.com/image1/


After you've got the direct URL, you can add it to the source attribute of the image tag like so:
<img src="http://www.mysite.com/image1.png" />


When coding HTML and connecting to a source like an image, web page, or JavaScript file, the file name and file type are both case sensitive. For example, if you take a screen shot in Windows XP and save it as a PNG in Microsoft Paint, the file extension will be capital PNG, so your code would need to reflect the capitalization.
Would you be interested in contributing to the PCWorld Wiki?

Learn how to edit pages and even create new ones.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users