WEB TECHNOLOGIES Full Topics Part 2

/
0 Comments
                 WEB TECHNOLOGIES
                 Full Topics  Continuous Part 2

Web Technologies part 2

Broadly scripts are categorized into two types:

1. Client-side Scripting
2.Server-side Scripting

CLIENT-SIDE SCRIPTING

Client-side scripting generally refers to the class of computer programs on the web that are executed client-side by the user's web browser. Client-side scripts are often embedded within an HTML or XHTML document, but they may also be contained in a separate file, which is referred by the document (or documents) that use it. Client-side scripting language is very necessary to build a webpage, this language is executed in client browser (IE, Firefox, Chrome, Opera)

Some of the client side languages are
o    HTML
o    CSS
o    XML
o    JavaScript
VB Script


HTML

HTML stands for Hyper Text Markup Language. HTML is the primary markup language that is used for Web pages. HTML tells the browser what to display on a page. For example, it specifies text, images, and other objects and can also specify the appearance of text, such as bold or italic text.
Note:- DHTML stands for Dynamic HTML. DHTML combines Cascading Style Sheets (CSS) and scripting to create animated Web pages and page elements that respond to user interaction.

CSS
CSS stands for Cascading Style Sheets. Cascading Style Sheets provide the ability to change the appearance of text (such as fonts, colors, spacing) on Web pages. Using CSS, you can also position elements on the page, make certain elements hidden, or change the appearance of the browser, such as changing the color of scroll bars in Microsoft Internet Explorer.

XML
XML stands for Extensible Markup Language. Similar to HTML, XML is a markup language designed for the Internet. However, unlike HTML, which was designed to define formatting of Web pages, XML was designed to describe data. You can use XML to develop custom markup languages.

JavaScript
JavaScript is an interpreted scripting language commonly used on the Internet for creating Web pages that respond to user actions, such as when a user moves a mouse pointer over an image or clicks a form button. Combined with HTML and CSS, JavaScript allows you to create Dynamic HTML pages.
JavaScript is generally used for client-side scripting; as a result, users can easily view JavaScript code along with the HTML code in a page. Various browsers may implement the JavaScript scripting objects differently, but most popular browsers support JavaScript. The biggest disadvantage of JavaScript is that users can turn it off in the browser, which makes pages that use it not function as expected.

VBScript
VBScript is an interpreted scripting language that is a subset of Microsoft Visual Basic. As a result, the structure and syntax are similar to Visual Basic, making VBScript an easy scripting language to learn. Although VBScript can be used for client-side scripting in Internet Explorer, most other browsers do not include a VBScript interpreter. 


SERVER-SIDE SCRIPTING

Server-side Scripting languages are executed in server and result will be displayed in a web browser as either HTML or XML format. Client browser can’t execute server scripts. If a webpage is in server side php code, we can’t see its php code. Instead of this equivalent HTML code will be shown off. Every client request will be processed in server and HTML code will be sent to browser. Most popular web server are Apache and IIS.
Some of the server side languages are
o    ASP.Net
o    PHP
o    Perl

ASP.NET
ASP.NET is the next generation of server-side processing for ASP programming. You can write ASP.NET code in C#, Visual Basic .NET, or any language that is supported by the .NET Framework. Because ASP.NET is part of the .NET Framework, you can develop ASP.NET applications that utilize any of the namespaces and classes in the .NET Framework. If you plan to develop Web applications with ASP.NET, you should verify that your Web server has the most recent version of the .NET Framework installed.

Perl
Perl is an interpreted scripting language that can also be compiled into executable files. The Perl language is similar to the C programming language. Perl scripting is often used for CGI programming on UNIX-based servers, although Perl can also run on Windows-based servers.

PHP
PHP is an interpreted server-side scripting language. PHP is commonly used to access databases and provide server-side form and e-commerce processing. The PHP code is contained within the body of an HTML page. PHP code typically runs on Linux-based and UNIX-based Web servers and can run on Windows-based servers with an installed interpreter.

DIFFERENCE BETWEEN CLIENT-SIDE SCRIPTING AND SERVER-SIDE SCRIPTING LANGUAGES


Client-side Scripting

Server-side Scripting

1. Client-side scripting is executed by the browser

1. Server-side scripting executed by the Web 

Server.

2. Client-side scripting is possible to be blocked

2. Server-side scripting can’t be blocked by the

user.

3. User can see the source code

3. User can’t see the source code unless author

publishes code

4. Client-side scripts do not require any additional Software on the server but require web browser which understands the scripting languages.

4. Server-side scripts require, languages

interpreter installed on the server regardless of the

client's web browser, os or system calls.

5. They have greater access to the information

and functions available on the user’s browser.

5. They have greater access to the information

and functions available on the server.

                                                 
                              Continues Next Topic

Back Old Topic                                            Main Page





You may also like

No comments:

Please do not enter any spam link in the comment box.