HTML problem. Please help me!Please!Please!Please!?

  • Thread starter Thread starter Harsh
  • Start date Start date
H

Harsh

Guest
I made some HTML programs on my own(They are stored on my PC).These programs worked in IE6 but ever since i got IE7 the programs have stopped working.If I open each file 1 by 1 then they open but if I try to connect from one file to the other there is an error.

Please help me! I took a lot of time to make these programs.
I am sure there is no syntax error because they worked in IE6. Also they do not work in Firefox.
 
Working in IE6 is no reason to think that they have no syntax errors - browsers are very good at recovering from errors, and IE6 has VAST numbers of bugs which authors might be depending on.

The first things to do are:

1. Make sure you use a Doctype that triggers standards mode

http://www.quirksmode.org/css/quirksmode.html

I recommend HTML 4.01 Strict.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Place it at the very top of the page. Make sure there is nothing before it - including spaces and comments.

2. Make sure your HTML and CSS is valid.

Use these tools: http://validator.w3.org/ then http://jigsaw.w3.org/css-validator/

3. Make sure your JavaScript conforms to good coding practises.

Use this tool: http://www.jslint.com/

Also make sure that if you are changing CSS on the fly with it, that you do not forget the unit from your lengths.

Use this tool: http://getfirebug.com/ to debug the JavaScript. You'll need to use Firefox for this step.
 
Back
Top