A heart attack is an attack directed at the heart. A stroke is blockage that occurs in a blood vessel in the brain.
There is very little difference. Heart attacks happen when blood vessels supplying the heart with blood get blocked, leading to cardiac arrest and in extreme cases leading to the death of heart tissue.