p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning HTML and CSS (published March 2013) (http://p2p.wrox.com/forumdisplay.php?f=724)
-   -   add image (http://p2p.wrox.com/showthread.php?t=89979)

parvinder May 3rd, 2013 09:00 AM

add image
 
hi guys i m try add a image into my html doc,i m typing correct code & src path ,which <img src="whatever"/> i could not add image ,thou image is in same folder as doc ,plz anybody can help me with this thx.

roblarsen May 3rd, 2013 09:09 AM

While your example might just be an example... you do need the file extension. So if your file is a jpg, it would be <img src="whatever.jpg"/>

parvinder May 3rd, 2013 09:26 AM

yes , i did give extension name it was jpeg, still cannot add.

roblarsen May 3rd, 2013 05:29 PM

Just paste all of your HTML. I'm not going to be able to figure out what might be wrong with your folder structure, but I can certainly see if your HTML makes sense.

mathssjohn January 31st, 2015 01:30 AM

Beginning HTML
 
you have three ways to insert your image file

<img src="foldername/imagename.jpg"/>

<img src="../foldername/imagename.jpg"/>

<img src="imagename.jpg"/>

you try this code


All times are GMT -4. The time now is 05:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.