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

Asked

Viewed 19,823 times

26

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

Take this example:

http://g1.globo.com/mundo/noticia/neta-de-trump-se-transforma-em-estrela-midiatica-na-china.ghtml

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

  • Just to be clear, pages from the.com globe belong to the Surface Web because they are indexed by traditional search bots.

  • 1

    @Andrefigueiredo but has some relationship to the . ghtml extension file?

  • Absolutely none. So much so that if you log in by any browser on the globe.com you will see that most extensions of the G1 pages are .ghtml, which have a slightly different layout than .html, in regional news.

2 answers

34


Each uses the 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 for them, something that the HTTP server is configured to process differently by calling an application that will interpret that and generate an output. It may be that this page is generated by PHP, for example, so instead of them put .php in the archives put .dhtml.

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

Even the .html may be calling an app to process. 20 years ago I was doing this and the "webmasters" of the time were intrigued as I could make a page "dynamic" being that it is a "standard HTML".

It doesn’t even have to have extension, the extension doesn’t determine anything that’s going to happen behind the curtain. The configuration of each server is what will determine what to do. Some even change to complicate for laymen to try 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 page content.

  • I was just thoughtful for this ghtml , but I wanted to ask the question with other extensions to add more knowledge.

-5

The ghtml widget is intended to display HTML text from a url or string. "Examples

## Not run: 
#   ghtml(system.file("html","gedit.html",package="gWidgets"),
#     container = gwindow())
# ## End(Not run)
  • 4

    That’s right R?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.