|
Posted by Gιrard Talbot on 11/01/06 23:08
web@mastaar.com wrote :
> Hi.. I just found this group, so I hope someone here can help me.
>
> I'm having problems with my html code..
This is wrong:
<link href="files/if_ie_below_70.js" type="text/javascript" />
This is correct:
<script type="text/javascript" href="files/if_ie_below_70.js"></script>
It look like my index file has
> an iframe when I open it in the new IE 7.0. That suck, because it is
> just my index.html file and my home.html file that looks that way.
>
> If I open my website in Opera or Firefox I don't get this... What is
> wrong with my conding?
> One other thing I can't figure out is how to import javascripts in a
> validating way...(the code work but is not valid xhtml)
> I use strict xhtml.. and I get this fault from the w3c validator:
>
> Error Line 20 column 17: there is no attribute "language".
> <script language="JavaScript">
>
language is deprecated; type is both backward and forward-compatible.
> My website is: http://mastaar.com..
>
>
> these pages looks wrong in IE7.0:
> * http://www,mastaar.com/index.html
> * http://www,mastaar.com/home.html
>
Do not put carriage return in the url of the doctype declaration.
Do not do:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/
xhtml1/DTD/xhtml1-strict.dtd">
Instead do:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Also,
Do not do:
<a href="mailto:web@mastaar.com?subject=Hello mastaar!">
but instead
<a href="mailto:web@mastaar.com?subject=Hello%20mastaar!">
or even better: don't pre-write the subject line.
Why lang="nb" ?
Why not lang="en" ?
> If you compare it with IE 7.0 against Opera/firefox you will see what I
> mean about the
> scrollbars..
>
> I know my website does not show correct in IE 6.0 also - but there is
> so much that don't work there so I just put a javascript popup
I do not recommend to use a popup for this.
to
> explain that to my visiters..
>
Well, then I recommend you do this in a much better way.
First you should try to fix as many problems you see with MSIE 6 that
you can. If your design is simple, you may even not have to make any
kind of notice.
Then you can write a disclaimer (or a link to a conformance notice) at
the bottom of the page which would be saying something like "This
webpage complies with known and established W3C web standards. If you
are using MSIE 6, then the webpage(s) may not render as intended. You
are invited to use Firefox 2.0 or Opera 9.1" or any kind of speech you
would like to tell them. You could use conditional comment to do this
for optimal impact.
GΓ©rard
--
remove blah to email me
Navigation:
[Reply to this message]
|