Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

htm and html - whats the difference?

Featured Replies

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

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.

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

  • Author

Thanks so much for your speedy replies.

 

:D

 

I'll crack on then - thanks again xx

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

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

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.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.