The best thing to do is to use the proper doctype (usually HTML 4.01 strict) and to write clean code. (VALIDATE IT!!) It also helps to start your CSS out with a * {margin:0; padding: 0;} to nip any discrepancies caused by browser-related default settings, and if all fails, use conditional comments - there's an excellent tutorial here: IE Conditional Comments
I am creating some web pages from scratch (using Notepad), but it loads differently with different browsers (e.g IE 6 and 7). Is there something I can do to prevent this i.e to have a standard form for each browser?
Thanks!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic