Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Is there a difference between html document and html file?

Question posted by: Mark (Guest) on June 27th, 2008 07:15 PM
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?
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Adrienne Boswell's Avatar
Adrienne Boswell
Guest
n/a Posts
June 27th, 2008
07:15 PM
#2

Re: Is there a difference between html document and html file?
Gazing into my crystal ball I observed Mark <mark.larsen@exeloncorp.com>
writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
@m3g2000hsc.googlegroups.com:
Quote:
Originally Posted by
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
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


John Hosking's Avatar
John Hosking
Guest
n/a Posts
June 27th, 2008
07:15 PM
#3

Re: Is there a difference between html document and html file?
Mark wrote:
Quote:
Originally Posted by
>
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*...

Roderik's Avatar
Roderik
Guest
n/a Posts
June 27th, 2008
07:15 PM
#4

Re: Is there a difference between html document and html file?
Adrienne Boswell schreef:
Quote:
Originally Posted by
Gazing into my crystal ball I observed Mark <mark.larsen@exeloncorp.com>
writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
@m3g2000hsc.googlegroups.com:
>
Quote:
Originally Posted by
>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.
Quote:
Originally Posted by
>
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.

 
Not the answer you were looking for? Post your question . . .
182,266 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors