How can you tell whether a compound is ionic or covalent simply by looking at its formula?

Any element that is fused to an alkali metal (like NaCl) or alkali earth metal (CaCl2) is ionic bond. All others (like H2O or C6H12O6) are covalent.
Updated on Sunday, February 05 2012 at 06:09PM EST
Collections: alkaline earth metalalkali metalnaclionic bondh2o