If you open the HTML file in Google Docs and then, instead of copying and pasting into Word, you go to File>Download as and select Microsoft Word (.docx)
and then open the downloaded document in Word, the appropriate Heading # styles will have been applied
Less steps however if you simply paste the text with tags into Word and run the macro that I provided.