title: MS Word .doc file save as type should be Word 97-2003 not Web Page
body: <p>I used php to create a Word file with the extension <strong>.doc</strong> using HTML content.
  When I open the document it opens fine but when I try to Save As in dialog box it shows "Web Page" as the "Save as" type.</p>
  
  <p>I used code like this
  <a href="https://stackoverflow.com/a/13340217">https://stackoverflow.com/a/13340217</a>, 
  <a href="https://daveismyname.blog/create-a-doc-file-with-php-on-the-fly" rel="nofollow noreferrer">https://daveismyname.blog/create-a-doc-file-with-php-on-the-fly</a></p>
  
  <p>But I need it to default to the Word Document type of <strong>Word 97-2003 Document</strong>
  because the user can't observe this format while saving.</p>
  
  <p>I've attached an image of this issue:</p>
  
  <p><strong>Save-as-type-issue-IMAGE</strong></p>
  
  <p><a href="https://i.stack.imgur.com/QMwlk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QMwlk.png" alt="enter image description here"></a></p>
  
  <p>(Note: That code needs some changes in php headers and html head tag elements.)</p>
  
  <p>Can anyone provide a suggestion to solve this issue?</p>