What is the best way to test a code for browser compatibility?

How can I test a locally hosted code for cross browser compatibility?