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
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.
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.
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
.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.
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: 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.
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.
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.