SCRIPTING. Web page Designing using HTML, Scripting basics- Client side and server side scripting.
Java
Script-Object, names, literals, operators and expressions- statements and features- events - windows -
documents - frames - data types - built-in functions- Browser object model - Verifying forms.-HTML5-
CSS3- HTML 5 canvas - Web site creation using tools. Web Page Designing using HTML: Learn HTML
Using Notepad or TextEdit Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe in that using a simple text editor is a good way to learn HTML. Follow the steps below to
create your first web page with Notepad or TextEdit. Step 1: Open Notepad (PC) Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad. Windows
7 or earlier: Open Start > Programs > Accessories > Notepad Step 1: Open TextEdit (Mac) Open Finder >
Applications > TextEdit Also change some preferences to get the application to save files correctly. In
Preferences > Format > choose "Plain Text" Then under "Open and Save", check the box that says
"Display HTML files as HTML code instead of formatted text". Then open a new document to place the
code. Step 2: Write Some HTML Write or copy the following HTML code into Notepad:
My First Heading
My first paragraph.
[Link] | [Link] |
[Link] [Link] | [Link] |
[Link] Step 3: Save the HTML Page Save the file on your computer. Select File >
Save as in the Notepad menu. Name the file "[Link]" and set the encoding to UTF-8 (which is the
preferred encoding for HTML files). Step 4: View the HTML Page in Your Browser Open the saved HTML
file in your favorite browser (double click on the file, or right-click - and choose "Open with"). The result
will look much like this: [Link] | [Link]
| [Link] [Link] | [Link] |
[Link] W3Schools Online Editor - "Try it Yourself" With our free online editor, you
can edit the HTML code and view the result in your browser. It is the perfect tool when you want to test
code fast. It also has color coding and the ability to save and share code with others: Example
This is a Heading
This is a paragraph.
Scripting Basics: A shell script is a computer program designed to be run by the Unix/Linux shell which
could be one of the following: • The Bourne Shell • The C Shell • The Korn Shell • The GNU Bourne-Again
Shell A shell is a command-line interpreter and typical operations performed by shell scripts include file
manipulation, program execution, and printing text. Extended Shell Scripts
[Link] | [Link] |
[Link] [Link] | [Link] |
[Link] Shell scripts have several required constructs that tell the shell environment
what to do and when to do it. Of course, most scripts are more complex than the above one. The shell
is, after all, a real programming language, complete with variables, control structures, and so forth. No
matter how complicated a script gets, it is still just a list of commands executed sequentially. The
following script uses the read command which takes the input from the keyboard and assigns it as the
value of the variable PERSON and finally prints it on STDOUT. #!/bin/sh # Author : Zara Ali # Copyright (c)
[Link] # Script follows here: echo "What is your name?" read PERSON echo "Hello,
$PERSON" Here is a sample run of the script − $./[Link] What is your name? Zara Ali Hello, Zara Ali $
Client Side and Server Side Scripting: 1. Client side scripting : web browsers executes client side scripting.
It is use when browsers has all code. Source code used to transfer from web server to user’s computer
over internet and run directly on browsers. It is also used for validations and functionality for user
events. It allows for more interactivity. It usually performs several actions without going to user. It
cannot be basically used to connect to databases on web server. These scripts cannot access file system
that resides at web browser. Pages are altered on basis of users choice. It can also used to create
“cookies” that store data on user’s computer. 2. Server side scripting : Web servers are used to execute
server side scripting. They are basically used to create dynamic pages. It can also access the file system
residing at web server. Server-side environment that runs on a scripting language is a web-server.
Scripts can be written in any of a number of server-side scripting language available. It is used to retrieve
and generate content for dynamic pages. It is used to require to download plugins. In this load times are
generally faster than client-side scripting. When you need to store and retrieve information a database
will be used to contain data. It can use huge resources of server. It reduces client-side computation
overhead. Server sends pages to request of user/client. Difference between client side scripting and
server side scripting : CLIENT SIDE SCRIPTING SERVER SIDE SCRIPTING Source code is not visible to user
because it’s output Source code is visible to user. of server side is a HTML page.
[Link] | [Link] |
[Link] [Link] | [Link] |
[Link] It usually depends on browser and it’s version. In this any server side
technology can be use and it does not depend on client. It runs on user’s computer. It runs on web
server. There are many advantages link with this like faster. response times, a more interactive
application. The primary advantage is it’s ability to highly customize, response requirements, access
rights based on user. It does not provide security for data. It provides more security for data. It is a
technique use in web development in which scripts runs on clients browser. It is a technique that uses
scripts on web server to produce a response that is customized for each clients request. HTML, CSS and
javascript are used. Java Script Object: PHP, Python, Java, Ruby are used. In JavaScript, almost
"everything" is an object. • Booleans can be objects (if defined with the new keyword) • Numbers can
be objects (if defined with the new keyword) • Strings can be objects (if defined with the new keyword)
• Dates are always objects • Maths are always objects • Regular expressions are always objects • Arrays
are always objects • Functions are always objects • Objects are always objects All JavaScript values,
except primitives, are objects. JavaScript Primitives A primitive value is a value that has no properties or
methods. A primitive data type is data that has a primitive value. JavaScript defines 5 types of primitive
data types: • string • number • boolean • null • undefined Primitive values are immutable (they are
hardcoded and therefore cannot be changed). if x = 3.14, you can change the value of x. But you cannot
change the value of 3.14. Objects are Variables JavaScript variables can contain single values: Example
var person = "John Doe"; Objects are variables too. But objects can contain many values.