Is there a difference between html document and html file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    Is there a difference between html document and html file?

    Hello

    This might be an odd question. I have an Excel VBA program that
    searches through a folder for any .htm or .html file, searches the
    file for any 'hrefs' and prints them to the spreadsheet. For some
    reason I have noticed that some of the files are HTML Documents, and
    some are HTML Files, and the program is only searching through the
    HTML Files. I'm not sure if there is a difference between the two.
    The only thing that I can notice is that they are different icons, and
    when double clicked, the HTML Document opens in IE, and the HTML File
    opens in Notepad. Any ideas?
  • Adrienne Boswell

    #2
    Re: Is there a difference between html document and html file?

    Gazing into my crystal ball I observed Mark <mark.larsen@ex eloncorp.com>
    writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
    @m3g2000hsc.goo glegroups.com:
    Hello
    >
    This might be an odd question. I have an Excel VBA program that
    searches through a folder for any .htm or .html file, searches the
    file for any 'hrefs' and prints them to the spreadsheet. For some
    reason I have noticed that some of the files are HTML Documents, and
    some are HTML Files, and the program is only searching through the
    HTML Files. I'm not sure if there is a difference between the two.
    The only thing that I can notice is that they are different icons, and
    when double clicked, the HTML Document opens in IE, and the HTML File
    opens in Notepad. Any ideas?
    >
    IIRC, Windows treats html and htm differently because back in the day,
    Windows was restricted to eleven characters in its file naming
    conventions, the name of the file could be up to eight characters, and
    the extention was three.

    Html and htm files are exactly the same. You can set how to open each
    through the control panel, folder options, file types.

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services

    Please respond to the group so others can share

    Comment

    • John Hosking

      #3
      Re: Is there a difference between html document and html file?

      Mark wrote:
      >
      This might be an odd question. I have an Excel VBA program that
      searches through a folder for any .htm or .html file, searches the
      file for any 'hrefs' and prints them to the spreadsheet. For some
      reason I have noticed that some of the files are HTML Documents, and
      some are HTML Files, and the program is only searching through the
      HTML Files. I'm not sure if there is a difference between the two.
      The only thing that I can notice is that they are different icons, and
      when double clicked, the HTML Document opens in IE, and the HTML File
      opens in Notepad. Any ideas?
      Sounds like a matter of Microsoft Windows' file types to me, for which I
      will be no help. If you get to a File Types dialog in Windows (e.g., via
      Explorer in Tools-Folder Options-File Types) you will see a long list of
      registered file types, many of which seem to be duplicates to us humans
      but are (sometimes?) treated as discrete by the computer.

      I can't explain any more than that, because I don't completely
      understand the mechanism or logic of it, but that's my theory for you.

      --
      John
      Not that I'm *bitter*...

      Comment

      • Roderik

        #4
        Re: Is there a difference between html document and html file?

        Adrienne Boswell schreef:
        Gazing into my crystal ball I observed Mark <mark.larsen@ex eloncorp.com>
        writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
        @m3g2000hsc.goo glegroups.com:
        >
        >Hello
        >>
        >This might be an odd question. I have an Excel VBA program that
        >searches through a folder for any .htm or .html file, searches the
        >file for any 'hrefs' and prints them to the spreadsheet. For some
        >reason I have noticed that some of the files are HTML Documents, and
        >some are HTML Files, and the program is only searching through the
        >HTML Files. I'm not sure if there is a difference between the two.
        >The only thing that I can notice is that they are different icons, and
        >when double clicked, the HTML Document opens in IE, and the HTML File
        >opens in Notepad. Any ideas?
        >>
        >
        IIRC, Windows treats html and htm differently because back in the day,
        Windows was restricted to eleven characters in its file naming
        conventions, the name of the file could be up to eight characters, and
        the extention was three.
        I must say that I still tend to use three character extensions however
        Windows does not show them by default anymore which is supposed to be an
        advance to the noob (who is not incidentily renaming a file to a
        different type) but confusing for the normal user IMO. So I would
        suggest unhiding file extension view, it is much more informative than
        those arbitrary names which are given by the programs that are
        associated with it. I don't like the name HTML Document much, that could
        also have refered to packaged HTML, like that for help file formats.
        >
        Html and htm files are exactly the same. You can set how to open each
        through the control panel, folder options, file types.
        I think the program will search both *.htm and *.html since it notices
        both extensions. But you can just check that and otherwise change the
        program a bit.

        Comment

        Working...