Sinisterly
HTML Code - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: HTML Code (/Thread-HTML-Code)

Pages: 1 2


HTML Code - LightX - 01-25-2013

Hey guys this is some very simple code in HTML for a class in school and i cant find what is wrong with it. Here is what you need to know: I am trying to make it have pictures from a local folder. The directory looks like this: Assignment/Assignment/index.htm
AND Images/atom,star,sun,world.
Here is the code:

Code:
<blockquote> Love from whom the world <img src="/Images/world.jpeg" align=top>begun,<br> Hath the secret of the sun. <img src="/Images/sun.jpeg" alt="Sun" align="top"><br> Love can tell, and love alone, When the million stars <img src="/Images/star.jpeg" alt="Star" align="middle"> were strewn,<br> Why each atom <img src="/Images/atom.jpeg" alt="Atom" align="bottom"> Knows its own <br> ..Robert Bridges </blockquote>

The pictures dont show up. Help? Smile


RE: HTML Code - The Real Slim Shady - 01-25-2013

remove the first slash from the images

it should just be ="Images/world.jpeg"


RE: HTML Code - LightX - 01-25-2013

(01-25-2013, 02:54 AM)Geoff Wrote: remove the first slash from the images

it should just be ="Images/world.jpeg"

Thank you, but this also did not work.


RE: HTML Code - The Real Slim Shady - 01-25-2013

then you should make sure there are not any other issues like file name/extension is correct, file permissions, etc. and the dir is correct. it should be

Assignment/index.htm
Assignment/Images/world.jpeg

oh and might be personal, but i hate directory names with capitals. imo it should always be lower case lol


RE: HTML Code - Coder-san - 01-25-2013

I doubt you have a ".jpeg" JPEG, probably it's ".jpg"


RE: HTML Code - LightX - 01-25-2013

(01-25-2013, 06:13 AM)Coder-san Wrote: I doubt you have a ".jpeg" JPEG, probably it's ".jpg"

It is actually a Jpeg. I honestly don't see a problem. they are just not found.


RE: HTML Code - The Real Slim Shady - 01-25-2013

wanna zip your entire working directory and email it to me ? ill give it a complete lookover/test for ya. the code you have here is fine.


RE: HTML Code - LightX - 01-25-2013

Oh, wait. I fixed it. thank you guys a ton! Biggrin


RE: HTML Code - The Real Slim Shady - 01-25-2013

not gonna post what the problem was? lol


RE: HTML Code - soldi3r - 01-25-2013

place the images on the desktop/root folder and then simply give the name of the image. like sun.jpeg