The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Image insertion
OverseasPlanners
post Feb 20 2011, 01:47 AM
Post #1





Group: Members
Posts: 1
Joined: 20-February 11
Member No.: 13,925



Attached File  THA.htm ( 254bytes ) Number of downloads: 154
Hi, I am a beginner in HTML. I want to insert an image to my webpage which is saved on my desktop. Which tag should I use? I used <IMG SRC=desktop/(image name)> but it didn't work. Please assist.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Barons
post Feb 20 2011, 02:24 AM
Post #2


Member
***

Group: Members
Posts: 70
Joined: 7-November 10
Member No.: 13,091



If you are doing it in html

http://www.goldcoastwebdesigns.com/12.shtml

If you are using css

http://www.htmlcodes.me/image-codes/css-image-code.cfm

Hope that helps
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Feb 20 2011, 04:29 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 4,332
Joined: 23-August 06
From: Europe
Member No.: 9



I wouldn't entirely trust that first link, as they only talk of absolute image URL's. And other explanations are either inconsistent or even wrong.

The second link again uses only absolute image URL's. This time the url to the image needs to be relative to the file in which the CSS is defined.

See http://htmlhelp.com/faq/html/basics.html#relative-url .

So, looking at the code in the attached file, if your HTML file is on the Desktop and the image is in the folder Pictures, which in turn is contained in the folder Madhav_ji, then your img tag should look like this:

<img src="Madhav_ji/Pictures/620443.jpeg" alt="">


--------------------
"The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French)

"Leave scepticism to others and take action"
from HOME by Goodplanet

An inconvenient truth by Al Gore
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 20 2011, 04:31 AM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,368
Joined: 9-August 06
Member No.: 6



QUOTE(OverseasPlanners @ Feb 20 2011, 07:47 AM) *

Attached File  THA.htm ( 254bytes ) Number of downloads: 154
Hi, I am a beginner in HTML. I want to insert an image to my webpage which is saved on my desktop. Which tag should I use? I used <IMG SRC=desktop/(image name)> but it didn't work. Please assist.


The URL isn't right (probably ). For that to work the HTML file must be one folder up from the desktop. You can read here about relative URLs.
http://htmlhelp.com/faq/html/basics.html#relative-url



--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 2nd September 2014 - 06:43 PM