473,839 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?
Jun 27 '08 #1
3 6136
Gazing into my crystal ball I observed Mark <ma*********@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
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 27 '08 #2
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
Adrienne Boswell schreef:
Gazing into my crystal ball I observed Mark <ma*********@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.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
8158
by: alex | last post by:
Hi, I am looking for a way to populate an HTML table from an external local text file which looks like this: DATE/TIME LAT. LON. DEPTH. ML. -------------------- ---------- ---------- ------- ------- 21/03/2005-04:06:03 XX,XX XX,XX 171 3,42 21/03/2005-12:23:53 XX,XX XX,XX 500 5,4 21/03/2005-12:43:10 XX,XX XX,XX 553 5,38
1
2432
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML GENERATED BY FUNCTION. Here'e the point: I'm writing a simple website for showing my photographs. It has a central page with many links (as many as galleries are).
4
1698
by: JJ_377 | last post by:
Why won't Netscape do the intended in the following? IE is able to render this page as intended. It is is a "self-posting" ASP form with a JavaScript validation function: if the form fails the JavaScript validation function, then the form should not post and an alert should be issued as indicated below. The *first* alert in the Validate function works in NS, but the rest of the code does not and therefore I wonder about the way I am...
9
2907
by: Robby Bankston | last post by:
I'm working on some code and am running into brick walls. I'm trying to write out Javascript with Javascript and I've read the clj Meta FAQ and didn't see the answer, read many similar posts (with no luck though), and searched through the IRT.ORG Faqs (www.irt.org/script/script.htm). The Javascript is designed to open an popup window and then inside that window call another script which will resize that window. There may be another...
4
1805
by: Jake j | last post by:
To those of you who sent me working examples of js include routines, much thanks. I see from them examples that what I'm trying to get to requires a higher level of js knowledge than I've got. Here's what I'm really trying to do: I've been using a sliding banner javascript routine in several html files and it works fine. Rather than duplicate the code in each file, however, it would obviously be preferable to including the routine in...
0
1754
by: purespam | last post by:
How can I dynamically add file links to a html document? I need to be able to click an image icon and the "Open file" box should pop up where I can select a document from my harddisk. The document should then be added to the html file at a specific spot and the file reloaded with the new document added to the html file showing. This new document should be stored in its new form. Is this possible? Or is it too hard to find the spot in...
2
1814
by: alex | last post by:
my html page like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>script.aculo.us Autocompleter functional test file</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script src="../../lib/prototype.js" type="text/javascript"></script> <script...
2
1442
by: Montezuma's Daughter | last post by:
Hi All I wanted to know what is the difference between: 1.getting an object the first worked for me and the other didn't var Subform = document.getElementById("Items2"); var Subform =document.all("Items2")
0
9856
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10910
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10654
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9426
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7833
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7021
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4493
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4066
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.