You are on page 1of 7

Differences

Differences between HTML and DHTML:

• HTML is a mark-up language, while DHTML is a collection of technology.


• DHTML creates dynamic web pages, whereas HTML creates static web pages.
• DHTML allows including small animations and dynamic menus in Web pages.
• DHML used events, methods, properties to insulate dynamism in HTML Pages.
• DHML is basically using JavaScript and style sheets in an HTML page.
• HTML sites will be slow upon client-side technologies, while DHTML sites will be fast
enough upon client-side technologies.
• HTML creates a plain page without any styles and Scripts called as HTML. Whereas,
DHTML creates a page with HTML, CSS, DOM and Scripts called as DHTML.
• HTML cannot have any server side code but DHTML may contain server side code.
• In HTML, there is no need for database connectivity, but DHTML may require
connecting to a database as it interacts with user.
• HTML files are stored with .htm or .html extension, while DHTML files are stored with
.dhtm extension.
• HTML does not require any processing from browser, while DHTML requires processing
from browser which changes its look and feel.

Differences between DHTML and JavaScript:

• DHTML is essentially Dynamic HTML. JavaScript is an interpreted computer


programming language.
• DHTML allows one to incorporate a client-side scripting language, such as JavaScript, a
presentation definition language, such as CSS, and the Document Object Model in
HTML web pages.
• A DHTML page uses JavaScript to dynamically respond to the user's interactions.
• DHTML is not an individual technology. It is the product of three related technologies:
HTML, Cascading Style Sheets (CSS), and JavaScript.

Difference between HTTP and HTTPs

HTTP HTTPS
URL begins with "http://" URL begins with "https://"
It uses port 80 for communication. It uses port 443 for communication.
Unsecured. Secured.
Operates at Application Layer. Operates at Transport Layer.
No encryption. Encryption is present.
No certificates required. Certificates(SSL) required.
Full form: HyperText Transfer Protocol Full form: HyperText Transfer Protocol Secure
(HTTP) (HTTPS)
HTML vs XML

HTML XML
HTML is an abbreviation for
XML stands for eXtensible Markup Language.
HyperText Markup Language.
XML was designed to be a software and hardware
HTML was designed to display
independent tool used to transport and store data, with
data with focus on how data looks.
focus on what data is.
XML provides a framework for defining markup
HTML is a markup language itself.
languages.
XML is neither a programming language nor a presentation
HTML is a presentation language.
language.
HTML is case insensitive. XML is case sensitive.
HTML is used for designing a
XML is used basically to transport data between the
web-page to be rendered on the
application and the database.
client side.
While what makes XML flexible is that custom tags can be
HTML has it own predefined tags. defined and the tags are invented by the author of the XML
document.
HTML is not strict if the user does XML makes it mandatory for the user the close each tag
not use the closing tags. that has been used.
HTML does not preserve white
XML preserves white space.
space.
HTML is about displaying
XML is about carrying information,hence dynamic.
data,hence static.

Web Page
web page is a document available on world wide web. Web Pages are stored on web server and
can be viewed using a web browser.

A web page can contain huge information including text, graphics, audio, video and hyper links.
These hyper links are the link to other web pages.

Collection of linked web pages on a web server is known as website. There is unique Uniform
Resource Locator (URL) is associated with each web page.

Static Web page


Static web pages are also known as flat or stationary web page. They are loaded on the client’s
browser as exactly they are stored on the web server. Such web pages contain only static
information. User can only read the information but can’t do any modification or interact with
the information.

Static web pages are created using only HTML. Static web pages are only used when the
information is no more required to be modified.

Dynamic Web page

Dynamic web page shows different information at different point of time. It is possible to
change a position of a web page without loading the entire web page. It has been made possible
using Ajax technology.

Server-side dynamic web page

It is created by using server-side scripting. There are server-side scripting parameters that
determine how to assemble a new web page which also include setting up of more client-side
processing.

Client-side dynamic web page

It is processed using client side scripting such as JavaScript. And then passed in to Document
Object Model (DOM).
Scripting Languages
Scripting languages are like programming languages that allow us to write programs in form of
script. These scripts are interpreted not compiled and executed line by line.

Scripting language is used to create dynamic web pages.

Client-side Scripting

Client-side scripting refers to the programs that are executed on client-side. Client-side scripts
contains the instruction for the browser to be executed in response to certain user’s action.

Client-side scripting programs can be embedded into HTML files or also can be kept as separate
files.

Following table describes commonly used Client-Side scripting languages:

S.N. Scripting Language Description


JavaScript
1. It is a prototype based scripting language. It inherits its naming conventions from java. All
java script files are stored in file having .js extension.
ActionScriptIt is an object oriented programming language used for the development of
2.
websites and software targeting Adobe flash player.
Dart
3. It is an open source web programming language developed by Google. It relies on source-
to-source compiler to JavaScript.
VBScript
4. It is an open source web programming language developed by Microsoft. It is superset of
JavaScript and adds optional static typing class-based object oriented programming.

Server-side Scripting

Sever-side scripting acts as an interface for the client and also limit the user access the resources
on web server. It can also collects the user’s characteristics in order to customize response.

Following table describes commonly used Server-Side scripting languages:

S.N. Scripting Language Description


ASP
Active Server Pages (ASP)is server-side script engine to create dynamic web pages. It
1.
supports Component Object Model (COM) which enables ASP web sites to access
functionality of libraries such as DLL.
ActiveVFP
2. It is similar to PHP and also used for creating dynamic web pages. It uses native Visual
Foxpro language and database.
ASP.net
3.
It is used to develop dynamic websites, web applications, and web services.
Java
4. Java Server Pages are used for creating dynamic web applications. The Java code is
compiled into byte code and run by Java Virtual Machine (JVM).
Python
It supports multiple programming paradigms such as object-oriented, and functional
5.
programming. It can also be used as non-scripting language using third party tools such as
Py2exe or Pyinstaller.
WebDNA
6.
It is also a server-side scripting language with an embedded database system.

Static vs Dynamic website


Static Website Dynamic Website
Prebuilt content is same every time the Content is generated quickly and changes
page is loaded. regularly.
It uses the server side languages such as
It uses the HTML code for developing a
PHP,SERVLET, JSP, and ASP.NET etc. for
website.
developing a website.
It sends exactly the same response for It may generate different HTML for each of the
every request. request.
The content is only changes when someone The page contains "server-side" code it allows the
publishes and updates the file (sends it to server to generate the unique content when the
the web server). page is loaded.
Flexibility is the main advantage of static Content Management System (CMS) is the main
website. advantage of dynamic website.

Get vs. Post


There are many differences between the Get and Post request. Let's see these differences:

GET POST
In case of post request, large amount of
1) In case of Get request, only limited amount of
data can be sent because data is sent in
data can be sent because data is sent in header.
body.
2) Get request is not secured because data is Post request is secured because data is
exposed in URL bar. not exposed in URL bar.
3) Get request can be bookmarked. Post request cannot be bookmarked.
4) Get request is idempotent . It means second
request will be ignored until response of first request Post request is non-idempotent.
is delivered
5) Get request is more efficient and used more than Post request is less efficient and used less
Post. than get.

GET and POST


Two common methods for the request-response between a server and client are:

• GET- It requests the data from a specified resource


• POST- It submits the processed data to a specified resource

You might also like