.html or .htm?

Discussion in 'HTML & Website Design' started by GingerApple, Aug 20, 2008.

  1. #1
    Hi,

    When designing a website in HTML is it better to use .html or .htm? Is it down to personal preference or is there something in it?

    Thanks, Will
     
    GingerApple, Aug 20, 2008 IP
  2. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well I am not quite sure what .htm is( I guess it is used for inserting chat software in a website), but you can build your pages in html(this is static markup language) while php, asp are for building dynamic pages or user interactive.
     
    scutari, Aug 20, 2008 IP
  3. GingerApple

    GingerApple Peon

    Messages:
    803
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My apologies, I should have been a bit clearer.

    .html and .htm are both valid file extensions for writing HTML pages, I was just wondering if one was favoured over the other.
     
    GingerApple, Aug 20, 2008 IP
  4. paid host

    paid host Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can bulid in both n problem....
    You can save in both ways......
    .html .htm
    Same language only just name is different as html htm
     
    paid host, Aug 20, 2008 IP
  5. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    html is more popular or widely used..
     
    scutari, Aug 20, 2008 IP
  6. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It really doesn't matter which one you choose.

    Taken from wikipedia, to explain why .htm exists.

     
    nicangeli, Aug 20, 2008 IP
  7. fartmaster

    fartmaster Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    .htm was used before when file extensions were limited to 3 characters. Nowadays file extensions can be longer and it is recommended to use .html to ensure compatibility with all browsers now and in the future.

    I remember reading this information when I first started to learn html, hope it helps.
     
    fartmaster, Aug 20, 2008 IP
  8. GingerApple

    GingerApple Peon

    Messages:
    803
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Brilliant! Thanks a lot guys :D
     
    GingerApple, Aug 20, 2008 IP
  9. bryanfilm

    bryanfilm Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It really doesn't matter but .html is more common
     
    bryanfilm, Aug 20, 2008 IP
  10. fartmaster

    fartmaster Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hey nicangeli looks like you answered the question the exact same time as me but for some reason I do remember reading to use .html to ensure future compatability but I dont think it should matter too much, better safe than sorry though for the sake of one letter
     
    fartmaster, Aug 20, 2008 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #11
    fartmaster: since .htm remains reserved for html documents, it should remain safe to use .htm, unless you are writing in a text editor that uses various syntax highlighting for different types of code, and maybe some text editors don't recognise .htm. But as far as sitting on a server, it's cool.
     
    Stomme poes, Aug 20, 2008 IP
  12. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #12
    HTM and HTML are the exact same.
    HTML has just been adopted as the modern standard currently...and it's more practical, since it's the coding language that the browser reads.

    Either or is fine and will not differentiate search engine rankings etc.
     
    EGS, Aug 20, 2008 IP
  13. mehdi

    mehdi Peon

    Messages:
    258
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #13
    The letter "L," there's not much of a difference between the two extensions. All web browsers and servers treat a file with an HTM extension exactly as it would a file with an HTML extension.
     
    mehdi, Aug 20, 2008 IP
  14. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #14
    It doesn't matter.
     
    mdvaldosta, Aug 20, 2008 IP
  15. cathaylist.com

    cathaylist.com Well-Known Member

    Messages:
    437
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #15
    I prefer to .htm because it's shorter.
    Choosing .htm or .html depends on the webmaster.
     
    cathaylist.com, Aug 20, 2008 IP
  16. xomero

    xomero Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #16
    .html is most used by the HTML editors as the "default" extension.
     
    xomero, Aug 20, 2008 IP
  17. Fabolous

    Fabolous Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    NOthing is different its just preference :p
     
    Fabolous, Aug 20, 2008 IP