Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2011, 10:58 AM   PM User | #1
Javake
New Coder

 
Join Date: Aug 2011
Location: California
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Javake is an unknown quantity at this point
Img source problems for my Website

When im writing the code for puting an image in HTML you put the path to get to the image in your computer. but in my wensite ive been writing the code directly on the website so it isnt stored on my computer. So what do i write in the source attribute to put an image on there?
Javake is offline   Reply With Quote
Old 08-28-2011, 11:32 AM   PM User | #2
vikram1vicky
Regular Coder

 
Join Date: Jul 2011
Location: India
Posts: 496
Thanks: 3
Thanked 57 Times in 56 Posts
vikram1vicky is an unknown quantity at this point
If image is in same folder on server, then simply you can write

Code:
<img src="imagename.png" alt="Image" width="100" height="100" />
If your image is placed in any sub-folder, then path would be

Code:
<img src="foldername/imagename.png" alt="Image" width="100" height="100" />
vikram1vicky is offline   Reply With Quote
Reply

Bookmarks

Tags
html, image, path, source, website

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:36 PM.


Advertisement
Log in to turn off these ads.