Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: HTML File or HTML Document?

  1. #1
    Join Date
    Jul 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML File or HTML Document?

    Hey guys

    This may sound like a stupid question but is there actually a difference between an HTML File and an HTML Document?

    The reason I ask is when I create my webpages in Dreamweaver, I always save the file as something like:

    filename.html (I always add the html extension myself)

    This creates an HTML File

    However if I save it as just filename, Dreamweaver adds the HTM extension itself thus creating an HTML Document

    What are the differences? As I always assumed they were the same...

    DJM

  2. #2
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    html document--the actual document (when opened)
    html file--the saved document. What the computer stores in it's memory
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's exactly the same thing. I usually use HTM, because it's compatible with older versions of DOS where filenames HAD to be 8.3. The only difference is in the label Windows attaches to it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jul 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the quick reply guys

    I see...

    So will I need to re-save all my website files to HTM or would it still be ok to upload the website using my current HTML files?

    Cheers

    DJM

  5. #5
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    it doesn't matter, but apparently, as Twey said, htm works better with some older versions of DOS...
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  6. #6
    Join Date
    Jul 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Cool thanks for the info guys

    djm

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    In other words, if you're not going to be using old versions of DOS, don't worry about it
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    It's exactly the same thing. I usually use HTM, because it's compatible with older versions of DOS where filenames HAD to be 8.3. The only difference is in the label Windows attaches to it.
    As only your machine (during authoring) and the server care about the filename, the extension doesn't really matter. Use html.

    A URL doesn't have to match typical filesystem patterns. A browser that assumes otherwise in its cache is broken.

    Mike

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You people are all missing the real point here. The .htm extension saves time and is a real productivity booster. It was in large part responsible for the last economic boom during the Clinton years.

    Seriously though, there is no difference unless you, or someone you will give the file to, work on an old Windows or DOS system. Then you need to use .htm only.

    But that's just the extension we are talking about. The difference between a file and a document is abstract. Generally, the file is the bytes on the disk, in memory or in transit over the internet. The document being the code and content written in that file. However, they are really one and the same when you get right down to it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by Mike
    As only your machine (during authoring) and the server care about the filename, the extension doesn't really matter. Use html.

    A URL doesn't have to match typical filesystem patterns. A browser that assumes otherwise in its cache is broken.
    I know. I wasn't talking about (shudder) running a webserver on DOS 2.0 or anything. It's just a habit.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •