^ Tricky one. HP and torque are both connected through the same equation also involving engine speed. Also, HP is an archaic term only still used because we like it.
The difference between torque and horsepower is that the engine only produces torque. Torque is force. Pure, raw force. It's what the force of the engine is at certain RPM speeds. Horsepower on the other hand, is more of a measure of the engine's ability to keep it's power spitting out towards the rear wheels. To do actual work.
In layman's terms, torque is raw power (what you feel in your ass when you step on it) and HP is more related to speed.
Anyway, it's fucking complicated over all so here:
http://vettenet.org/torquehp.html