January 24, 200917 yr Hi there I'm renovating an old site for someone - and all their internal pages are .htm pages. Whats the difference between .htm and .html? is there any reason i should keep working in .htm?? Thanks in advance
January 24, 200917 yr there is no difference.htm it's simply a shorter version of html.There are probably a few very technical differences but they're basicly the same thing Just use whatever you want.You can use 1 or the other or mix them.It's the same.
January 24, 200917 yr The primary difference between .htm and .html is simply that .html can't be represented in a DOS/16 bit operating system which uses the 8.3 file naming convention. So, .html files were renamed .htm when they were written on DOS/Windows 3.x systems Personally, I use .htm over .html, but that's just personal preference. You should try not to mix them, as it will just cause confusion for you at a later date. Pick one, and stick to it. HTH
January 24, 200917 yr Author Thanks so much for your speedy replies. I'll crack on then - thanks again xx
January 24, 200917 yr how about .xhtml? Anyone use it? Nope. That's right up there with .html3 from back in the day lol Don't see the point in confusing the issue for surfers who type direct addresses
January 29, 200917 yr XHTML the best place to get a good understanding is http://www.w3schools.com XHTML is the next stage in web development from the old html and aims to make sure that the html code which is written conforms to a set of good coding guideline set out by the W3C. In essence it is html but with a few extra rules where tags are removed or disallowed, its easy to pick up. the tutorials on w3schools are good. there are three main areas in XHTML - transitional, frameset and strict. I use Strict as probably do a lot of designers. In short it ensures that if your code is correct then there is less chance of the documents not being interpreted correctly by the user's browser. And we all want our pages to be viewed by as many people as possible with no fuss or problems Hope this helps a little Kapi
January 29, 200917 yr I've always wondered what the difference is nice to have an awnser, Kapi I used transitional is it a mix of html & xhtml? maybe I should start using Strict.
January 29, 200917 yr Although web browsers are unlikely to care whether you use .htm or .html or .xhtml, it's worth keeping it consistent just so you don't get confused. I've had similar experiences where I've taken over someone else's site and found a load of .htm files, and because I didn't sit down and change them all there and then I ended up with a mix, and then I found myself with index.htm and index.html and couldn't immediately see which was the right one! Technically you could have both on a server and they would both be treated as separate files, and it would depend on your server's configuration as to which would be found first. Then throw in an index.php for good measure... I have to hold my hand up and say that I've never actually used Strict, simply because Transitional is the one that's set by default when I start a new HTML document (I hand-code, but Dreamweaver gives me the bare-bones structure when I create a new document). I also had some frustrating experiences in my early days of HTML coding where sites wouldn't work because I was using Strict - changing to Transitional fixed that for me, and I've just never bothered looking into what the difference is!
Create an account or sign in to comment