Some cameras have grids in display mode to help you hold the camera straight. It helps when you have an obvious horizon. In Photoshop (and other editing programs) you have the option of showing a grid to check alignment.
Picture copyrighted by author - May not be used without permission