What is the difference between htm, html, dhtml and ghtml?


Browsing our " deepweb ", I noticed some browser URL extension variations on some simple pages. For example on the website of globo.com , which in some cases is .ghtml . For some time I imagined that Globo had created its own extension, like "globe"html for GHTML.

See this example:


For this reason, the doubt arose. What is the difference between .htm , .html , .dhtml and .ghtml ? What does each of them mean?


Each uses whatever file extension you want. There is no universal standard.

The most common is .html . On Windows some people prefer to use .htm , but it doesn't change anything.

The .dhtml can be an extension that indicates dynamic content to them, something the HTTP server is configured to process differently by calling an application that will interpret that and generate output. It could be that this page is generated by PHP, for example, so instead of them putting .php in the files they put .dhtml .

ghtml must be some other type of page that requires another application to be called to interpret it. Probably something that Globo chose with g just because it looked cute.

Even the .html could be calling an application to process. 20 years ago I did this and the "webmasters" at the time were intrigued by how I could make a page "dynamic" when it is "standard HTML".

It doesn't even have to have an extension, the extension doesn't determine anything what happens behind the scenes. The configuration of each server will determine what to do. Some even change to complicate things for laymen trying to hack something.

That's what I can answer. Exactly what they do only they can answer. There may be other reasons, but I think it's just to indicate which application to call to process the page's content.

Scroll to Top