Chapter 3: WEB TECHNOLOGY
What is the Internet?
·
The
Internet is a worldwide network of computers.
·
It
allows computers to share information with each other.
·
Uses
TCP/IP protocol for communication.
How Internet
Works ?
·
Your
device sends a request (example: Google search).
·
The
request goes through the internet.
·
The
server sends back the webpage you asked for.
Important
Internet Terms
a)
WWW (World Wide Web)
A
collection of web pages connected through links.
b)
Web Browser
Software
used to view web pages.
Examples:
Chrome, Firefox, Edge.
c)
Web Server
A
computer that stores websites and sends them when users request.
d)
URL (Uniform Resource Locator)
The
address of a webpage.
Example:https://www.google.com
e)
Domain Name
Human-friendly
name of a website.
Example:
facebook.com
f)
IP Address
Numeric
address of a computer.
Example:
192.168.1.1
2. Client-Side
and Server-Side Scripting
What
is Scripting?
Writing
small programs that run inside web pages.
a) Client-Side
Scripting
Runs
inside the browser.
Examples:
JavaScript
HTML
CSS
Uses:
·
Checking
forms (email, password)
·
Creating
animations
·
Changing
colors, images, text
Note:It does NOT communicate with the
database.
b) Server-Side
Scripting
Runs
on web server (not in the user's browser).
Examples:
PHP
Python Django
ASP.NET
Uses:
·
Storing
data in database
·
Checking
login
·
Creating
user accounts
·
Generating
web pages dynamically
Note:It CAN talk to databases.
Difference
between Client-Side and Server-Side Scripting
|
Client-Side Scripting |
Server-Side
Scripting |
|
Client
side scripting is used at the front end which users can see from the browser |
Server
side scripting is used at the backend where the source code is not viewable
or hidden at the client side browser |
|
Its
main function is to provide the requested output to end user. |
Its
primary function is to manipulate and
provides access to the respective database as per the request |
|
It
runs on the user’s computer . |
It
runs on the webserver |
|
Client
side scripting does not need any server interaction |
When
a server side script is processed it communicates to the server |
|
It
usually depends on the browser and its version. |
In
this any server side technology can be used and it does not depend on
the client |
|
It
is useful in minimizing the load on the
server |
It
is useful in customizing the web pages and implementing dynamic changes in
the website. |
|
It
is not secured compared to the server side as a client side script is visible
to the users |
It
is more secure than client side scripting as scripts are usually hidden from
the client end. |
|
The
client side scripting langauges involves languages such as html css and
javascript |
Server
side language involves programming such as PHP, ASP.NET, Python, C#, JSP etc. |