New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Pictures in HTML?


Post Reply New Thread Subscribe

 
Thread Tools
Leonardo

 
Member Since: May 24, 2009
Posts: 84
Leonardo is on a distinguished road
Mac Specs: eMac OS X 10.4.11 1.25GB RAM 40GB original hard drive,

Leonardo is offline
Hi,
When I'm making a web-page using Textedit, and add the code for an image, it never works. Even when I'm using an image I know the computer can display, and has before.
Here's exactly what I type.

<img border="3"src="/sun_euv19.gif"width="304" height="228"/>

and also this...

<img src="sun_euv19.gif"/img>

Which just ends up looking like this.
QUOTE Thanks
Eric559

 
Eric559's Avatar
 
Member Since: Jul 18, 2007
Location: Central California
Posts: 3,185
Eric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of light
Mac Specs: 2.16GHz C2D MacBook w/ 2GB RAM & 120GB HD. HTC Droid Incredible.

Eric559 is offline
Lissa Explains it All -- HTML Help and Tutorials for Kids

Member Of The Month for December '08.
It's only the internet!
QUOTE Thanks
wheelguy

 
wheelguy's Avatar
 
Member Since: Jun 18, 2006
Location: Minneapolis
Posts: 191
wheelguy will become famous soon enough
Mac Specs: MacBook Pro

wheelguy is offline
<img border="3"src="/sun_euv19.gif"width="304" height="228"/>

Make sure you have it coded correctly.
<img border="3" src="sun_euv19.gif" width="304" height="228"/>

Make sure you have the correct path to the image
<img border="3" src="sun_euv19.gif" width="304" height="228"/>
This says the image is in the same folder as the html file.

<img border="3" src="images/sun_euv19.gif" width="304" height="228"/>
This says the image is in the folder images

<img border="3" src="../images/sun_euv19.gif" width="304" height="228"/>
This says the images folder is up one level from the html file

Check out W3Schools Online Web Tutorials

If you aren't fired with enthusiasm, you will be fired with enthusiasm. -Vince Lombardi
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,815
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Try <img border="3" src="/sun_euv19.gif" width="304" height="228"/> and <img src="sun_euv19.gif" />

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
CrimsonRequiem

 
CrimsonRequiem's Avatar
 
Member Since: Jul 24, 2008
Posts: 6,006
CrimsonRequiem is a name known to allCrimsonRequiem is a name known to allCrimsonRequiem is a name known to allCrimsonRequiem is a name known to allCrimsonRequiem is a name known to allCrimsonRequiem is a name known to allCrimsonRequiem is a name known to all
Mac Specs: MBP 2.3 Ghz 4GB RAM 860 GB SSD, iMac 3.4 GHz Intel Core i7 32GB RAM, Fusion Drive 1TB

CrimsonRequiem is offline
Make sure that the picture name is typed out correctly with the correct file extension, also check that the HTML file and the picture is in the same/correct directory.

死神はリンゴしか食べない。
QUOTE Thanks
Leonardo

 
Member Since: May 24, 2009
Posts: 84
Leonardo is on a distinguished road
Mac Specs: eMac OS X 10.4.11 1.25GB RAM 40GB original hard drive,

Leonardo is offline
Okay, I got the image from here and I had the image saved to my desktop in a desktop shortcut. Then because of what was said here:

Quote:
,Make sure you have the correct path to the image
<img border="3" src="sun_euv19.gif" width="304" height="228"/>
This says the image is in the same folder as the html file.
I dragged the image shortcut into the same folder as my html file and typed exactly what was said above, but still nothing.
I also tried this:

Quote:
<img border="3" src="images/sun_euv19.gif" width="304" height="228"/>
This says the image is in the folder images
But still nothing.

Can somebody just me give a safe, known to work image, that has for sure already been uploaded to the internet and worked, that I could just copy and paste from this forum? Please??
QUOTE Thanks
leopard-user1

 
leopard-user1's Avatar
 
Member Since: Jan 27, 2009
Location: New York, NY
Posts: 531
leopard-user1 will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.5 GHz Intel Core 2 Duo Processor, 2 GB 667 MHz DDR2 SDRAM, not unibody

leopard-user1 is offline
As far as I know, TextEdit doesn't view pictures normally. I've never tried HTML, though.


(from scienceteecher.com)
17" MacBook Pro, OSX 10.6.2 Snow Leopard
QUOTE Thanks
Leonardo

 
Member Since: May 24, 2009
Posts: 84
Leonardo is on a distinguished road
Mac Specs: eMac OS X 10.4.11 1.25GB RAM 40GB original hard drive,

Leonardo is offline
I just tried copying and pasting directly from the image on the internet to my HTML code, instead of saving it to a file of my own and then trying to paste from the file, and it worked!!

I'll let you guys know if I have any other problems.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,815
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
<img src="http://www.mac-forums.com/forums/images/avatars/avatar76.gif" />

That links to your avatar image. Tested and it works.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Eric559

 
Eric559's Avatar
 
Member Since: Jul 18, 2007
Location: Central California
Posts: 3,185
Eric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of lightEric559 is a glorious beacon of light
Mac Specs: 2.16GHz C2D MacBook w/ 2GB RAM & 120GB HD. HTC Droid Incredible.

Eric559 is offline
Of course it worked because its pointing to a image online already. It wasn't showing before probably because it wasn't uploaded online and the path was messed up somewhere.

Member Of The Month for December '08.
It's only the internet!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,815
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by Eric559 View Post
Of course it worked because its pointing to a image online already. It wasn't showing before probably because it wasn't uploaded online and the path was messed up somewhere.
Agreed but since I don't have the directory structure, I can't really give a working example other than of an online image.

Can you tell us what the directory structure looks like?

Let me give you an example from my site of a working image. I have a directory called "images". In there, I have a picture called "chromium_04232009.png". To link to this image, I use this code: <img src="images/chromium_04232009.png" />

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Leonardo

 
Member Since: May 24, 2009
Posts: 84
Leonardo is on a distinguished road
Mac Specs: eMac OS X 10.4.11 1.25GB RAM 40GB original hard drive,

Leonardo is offline
I tried this
Quote:
<img src="http://www.mac-forums.com/forums/images/avatars/avatar76.gif" />
and it didn't work, it didn't even have the question mark icon.
Hmmmm?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,815
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Can you post the code to the page? That code does work because I tested it here locally.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Leonardo

 
Member Since: May 24, 2009
Posts: 84
Leonardo is on a distinguished road
Mac Specs: eMac OS X 10.4.11 1.25GB RAM 40GB original hard drive,

Leonardo is offline
Quote:
Can you post the code to the page? That code does work because I tested it here locally.
What exactly do you mean?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,815
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Post the code from your page here so we can see it.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« very basic web help | Where does iWeb save? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
help me fix my huge mess of pictures mrbubonic Images, Graphic Design, and Digital Photography 13 07-17-2009 10:00 AM
Dates on iPhoto pictures acortes Images, Graphic Design, and Digital Photography 2 06-21-2008 12:10 PM
Entourage not downloading pictures when using wireless, but ok when hardwired! podbay OS X - Apps and Games 0 03-31-2008 05:47 PM
3rd Gen iPod Issues with Pictures Britn iPod Hardware and Accessories 0 03-10-2008 04:24 AM
Problems using HTML with Entourage markw10 OS X - Apps and Games 4 09-18-2007 05:18 PM

All times are GMT -4. The time now is 12:23 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?