Is there any way I can make sure that my PSD designs and HTML are aligned perfectly?

Please anyone tell me a way to make sure that my PSD designs and HTML are aligned perfectly.