I have a HTML document with lots of internal links. Something like this:

<h1 id="anchor">A Heading</h1>
<a href="#anchor">Click to return to the beginning</a>.

The problem is that the id is not being recognised, so when you CTRL+Click on the link in Word, you're returned to the beginning of the document.

Why is my id not begin recognised, and how do I fix it? (I've already tried changing it to 'name', and that didn't work.)


It works in LibreOffice. (Portable version that doesn't require installation is also available.)

So, Your code works just fine in MS Word, if You'll do the following:

  1. open LibreOffice Writer and create the new document (File > New > Text Document)
  2. open your file in Internet Explorer > ctrl + A (select all) > ctrl + C (copy) > ctrl + V (paste to LibreOffice Writer)
  3. save as "Microsoft Word 97/2000/XP/2003 (.doc)" using LibreOffice Writer
  4. open with MS Word

Tested with LibreOffice Portable Version, IE 8 and MS Word 2007.

| improve this answer | |
  • Thank you. I'd previously tried importing to LibreOffice and then exporting as .docx and .odt, without success. But .doc is working. – Mark Barnes Feb 21 '14 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.