By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Is there a difference between html document and html file?

P: n/a
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?
Jun 27 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Gazing into my crystal ball I observed Mark <ma*********@exeloncorp.com>
writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
@m3g2000hsc.googlegroups.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
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 27 '08 #2

P: n/a
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*...
Jun 27 '08 #3

P: n/a
Adrienne Boswell schreef:
Gazing into my crystal ball I observed Mark <ma*********@exeloncorp.com>
writing in news:642e18da-efa9-4956-b8d4-419a8e6a2fd8
@m3g2000hsc.googlegroups.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.
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.