View Full Version : does not work in netscape
jennyd
04-17-2003, 10:31 PM
My first coding experience it works in I.E. but Netscape is giving me troble And I thought HTML was simple(until I actually started typing). Anyone know what I did wrong Thanks Jenny
<html>
<head>
<title>jennyspersians</title>
</head>
<body bg color="ffffff">
<IMG STYLE="position:absolute; top:125px; left:35px; height:15px; width:91px;"SRC="homejen.jpg">
<IMG STYLE="position:absolute; top:125px; left:125px; height:15px; width:91px;"SRC="kittens.jpg">
<a href="mailto: jennyd@mm2k.net"><IMG STYLE="position:absolute; top:125px; left:210px; height:15px; width:91px;"SRC="emailjen.jpg"></a>
<IMG STYLE="position:absolute; top:5px; left:5px; height:100px; width:800px;" SRC="jenbanner.jpg">
<IMG STYLE="position:absolute; top:105px; left:550px; height:300px; width:255px;" SRC="flower2.jpg">
<IMG STYLE="position:absolute; top:275px; left:0px; height:300px; width:300px;" SRC="flower.jpg">
</html>
Eddyd84
04-17-2003, 10:37 PM
Originally posted by jennyd
<html>
<head>
<title>jennyspersians</title>
</head>
<body bgcolor="ffffff">
<img style="position:absolute; top:125px; left:35px; height:15px; width:91px;"SRC="homejen.jpg" />
<img style="position:absolute; top:125px; left:125px; height:15px; width:91px;" scr="kittens.jpg" />
<a href="mailto:jennyd@mm2k.net">
<img style="position:absolute; top:125px; left:210px; height:15px; width:91px;" src="emailjen.jpg" />
</a>
<img style="position:absolute; top:5px; left:5px; height:100px; width:800px;" src="jenbanner.jpg" />
<img style="position:absolute; top:105px; left:550px; height:300px; width:255px;" src="flower2.jpg" />
<img style="position:absolute; top:275px; left:0px; height:300px; width:300px;" src="flower.jpg" />
</body></html>
For starters there is no space between bg and color in the <body> tag; Also there should not be space between mailto: and your email address. Secondly, close the <body> tag at the end of the document. A dtd is also necessary. I think that there is a sticky thread above this one to help you choose the right one. A link would be helpful to we can see exactly what's wrong. I hope this helps! :)
Peace.
Jason
04-17-2003, 11:09 PM
Im not entirely sure but the "/" at the end of every img tag...I don't think its necessisary <img ...../ > is what Im talking about. Take out all those things. The / is only used to close tags like <a href....> somewhere</a> where <a> opens and </a> closes and a=address. Hope that works...
Jason
Originally posted by Jason
Im not entirely sure but the "/" at the end of every img tag...I don't think its necessisary <img ...../ > is what Im talking about. Take out all those things. The / is only used to close tags like <a href....> somewhere</a> where <a> opens and </a> closes and a=address. Hope that works...
Jason
You need to close all tags if you want XML well-formedness and hence XHTML compatibility.
Eddyd84
04-17-2003, 11:22 PM
It is not require in HTML 4. However, in xhtml, all tags require a closing tag.
For instance
<p>This is a paragraph</p>
<img> does not contain content so it must be closed like this <img ... />
It is the same with many other tags:
<br> -- <br />
<meta ...> -- <meta ... />
<object ...> -- <object ... />
You can learn more about xhtml here (http://www.w3.org/TR/xhtml1/)
:thumbsup:
jkd beat me to it :):) :D
missing-score
04-17-2003, 11:27 PM
I dont know which netscape you are on about, but NS4 handles absolute positioning pretty poorly.
You would be better of creating a table to organise the images.
PS:
<img src="whatever.gif" /> is XHTML formatting, but the images will display fine without it.
Roy Sinclair
04-18-2003, 02:56 PM
Not to seem like it's a "jump on Jason" day or something but i'd like to say that it's a good practice for any html developer to code to the xhtml standards as much as they can even when targeting antique browsers. That way when it comes time to start developing true xhtml code in the future there are a lot less bad habits to unlearn. Anyone new to html/xhtml should be encouraged to learn xhtml directly and then the sort or workarounds required for those antique browsers.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.