Difference between html,shtml,htm

  • HTML/CSS
  • Thread starter Pattielli
  • Start date
  • Tags
    Difference
In summary, HTML, SHTML, and HTM are all file extensions used for web pages. HTML stands for Hypertext Markup Language and is the standard language used for creating web pages. SHTML is a variation of HTML that allows for server-side includes, which can be used to add dynamic content to web pages. HTM is a shortened version of HTML and is used interchangeably with the .html extension. While all three file extensions serve the same purpose of creating web pages, their slight differences allow for varying levels of functionality and customization.
  • #1
Pattielli
296
0
What are the differences between them ?
Another question, sometimes I see some internet addresses like http://FalseWebpage.com/
why isn't there www before FalseWebpage ?

Thank you,
 
Last edited by a moderator:
Technology news on Phys.org
  • #2
html = hyper text markup language
shtml - html that is using sever side includes
htm = abbrivation for html

DNS (domain name system) works by translating a URL/domain name to an IP address... There is no need to put a www in front if the domain point to the web service rather than let's say the SMTP service that this domain is hosting...

Your question can't be answered in a short post... Sorry to say this but you should RTFM on this one :-) I would suggest you read some RFC's for example RFC 1034 which describes DNS... If you have a grasp on DNS then you will understand why you do not need to put www in front

http://asg.web.cmu.edu/rfc/rfc1034.html
 
Last edited by a moderator:
  • #3
www is actually just a folder on the web server, information inside needs the www, information outside doesn't. It's just become a standard overtime to include a www folder as a formality.
 
  • #4
actually www is the bottom level in the DNS name (Domain Name) .com being the top... a folder would come after the .com for example

www.google.com/myfolder_file[/URL]

A web server could just as easily sit at

abcd.google.com
fghy.google.com
whatever.google.com
whatever.whatever.google.com

As long as you have a DNS zone per level specified on your name server you can go as far as you want...
 
Last edited by a moderator:

FAQ: Difference between html,shtml,htm

What is the difference between HTML, SHTML, and HTM?

HTML, SHTML, and HTM are all file extensions used for web pages. HTML stands for HyperText Markup Language, SHTML stands for Server-Side Includes HTML, and HTM is a shortened version of HTML. They are all used to create and display web pages, but there are some key differences between them.

What are the main features of HTML?

HTML is the most basic and widely used language for creating web pages. It is used to structure and organize the content of a webpage, including text, images, and other media. HTML uses tags to define the structure and appearance of a webpage, and it is a client-side language, meaning it is processed by the user's web browser.

What is the purpose of SHTML?

SHTML is a server-side language, meaning it is processed by the web server before being sent to the user's web browser. Its main purpose is to allow for the inclusion of dynamic content on a webpage, such as server-side scripts or database information. It also allows for the use of server-side includes, which can help to reduce redundancy in code and make webpage maintenance easier.

Is there a difference in file structure between HTML, SHTML, and HTM files?

While all three file extensions are used for web pages, the main difference lies in the server-side processing of SHTML files. SHTML files are processed by the web server and then sent to the user's browser as HTML, while HTML and HTM files are not processed and are sent directly to the browser. This means that SHTML files may have a different file structure, as they may contain server-side scripting or include files.

Which file extension should I use for my web pages?

The choice between HTML, SHTML, and HTM depends on the specific needs of your website. If you need to include dynamic content or server-side scripts, SHTML would be the best option. If your website is more basic and does not require server-side processing, HTML or HTM would be suitable. Ultimately, all three file extensions serve the same purpose of creating and displaying web pages, so the choice is up to personal preference and the needs of your website.

Similar threads

Replies
4
Views
2K
Replies
25
Views
2K
Replies
54
Views
6K
Replies
27
Views
2K
Replies
13
Views
2K
Replies
14
Views
1K
Replies
5
Views
2K
Replies
31
Views
4K
Back
Top