Unit - 1
Unit - 1
Internet
Internet is a global network that connects billions of computers across the world
with each other and to the World Wide Web. It uses standard internet protocol
suite (TCP/IP) to connect billions of computer users worldwide. It is set up by
using cables such as optical fibers and other wireless and networking
technologies. At present, internet is the fastest mean of sending or exchanging
information and data between computers across the world.
It is believed that the internet was developed by "Defense Advanced Research
Projects Agency" (DARPA) department of the United States. And, it was first
connected in 1969.
Internet is different from the World Wide Web as the World Wide Web is a
network of computers and servers created by connecting them through the
internet. So, the internet is the backbone of the web as it provides the technical
UNIT 1 (MWA)
infrastructure to establish the WWW and acts as a medium to transmit
information from one computer to another computer. It uses web browsers to
display the information on the client, which it fetches from web servers.
For example, if you have a person's name, you can find his phone number in a
phone book by searching his name. The internet uses the DNS server in the same
way to find the IP address of the domain name. DNS servers are managed by ISPs
or similar organizations.
UNIT 1 (MWA)
o TCP/IP Network Model: The most popular protocols for linking networks
are Transmission Control Protocol (TCP) and Internet Protocol (IP). Any
communication is split up into a number of packets that are sent from
source to destination.
o File Transfer Protocol: With the help of FTP (File Transfer Protocol), a user
can transfer documents, text files, multimedia files, program files, etc.,
from one device to another.
o Hypertext Transfer Protocol: It is used to move a hypertext between two
or more computers or other devices. Links can be made using HTML tags
and can take the form of text or graphics.
When the hypertext transfer protocol (HTTP) was developed in 1989, it enabled
different computer platforms to connect to the same Internet sites, which
dramatically improved communications over the network. The Mosaic Web
browser was developed in 1993.
UNIT 1 (MWA)
Over the years of its existence, the Internet has remained a constant growth and
development. For instance, IPv6 was created to provide for a significant future
rise in the number of IP addresses that could be used. In a related development,
the Internet of Things (IoT) refers to the rapidly developing environment where
nearly any entity or device can be given a unique identifier (UID) and the
capability to communicate data automatically over the Internet.
Internet Intranet
UNIT 1 (MWA)
It is a medium such as optical fiber cable that It is a small, private network as it
connects billions of computers with each other to belongs to a specific organization.
establish a worldwide network.
It can be assessed or used by anyone using an Only authorized persons can use
internet-enable devices, such as laptop, mobile this network.
phone, etc.
The building blocks of the Web are web pages which are formatted in HTML and
connected by links called "hypertext" or hyperlinks and accessed by HTTP. These
links are electronic connections that link related pieces of information so that
users can access the desired information quickly. Hypertext offers the advantage
to select a word or phrase from text and thus to access other pages that provide
additional information related to that word or phrase.
A web page is given an online address called a Uniform Resource Locator (URL).
A particular collection of web pages that belong to a specific URL is called a
website, e.g., www.facebook.com, www.google.com, etc. So, the World Wide
Web is like a huge electronic book whose pages are stored on multiple servers
across the world.
Small websites store all of their WebPages on a single server, but big websites or
organizations place their WebPages on different servers in different countries so
that when users of a country search their site they could get the information
quickly from the nearest server.
So, the web provides a communication platform for users to retrieve and
exchange information over the internet. Unlike a book, where we move from one
page to another in a sequence, on World Wide Web we follow a web of hypertext
links to visit a web page and from that web page to move to other web pages. You
need a browser, which is installed on your computer, to access the Web.
The Web works as per the internet's basic client-server format as shown in the
following image.
UNIT 1 (MWA)
The servers store and transfer web pages or information to user's computers on
the network when requested by the users. A web server is a software program
which serves the web pages requested by web users using a browser. The
computer of a user who requests documents from a server is known as a client.
Browser, which is installed on the user' computer, allows users to view the
retrieved documents.
All the websites are stored in web servers. Just as someone lives on rent in a
house, a website occupies a space in a server and remains stored in it. The server
hosts the website whenever a user requests its WebPages, and the website owner
has to pay the hosting price for the same.
UNIT 1 (MWA)
The moment you open the browser and type a URL in the address bar or search
something on Google, the WWW starts working. There are three main
technologies involved in transferring information (web pages) from servers to
clients (computers of users). These technologies include Hypertext Markup
Language (HTML), Hypertext Transfer Protocol (HTTP) and Web browsers.
HTML is a standard markup language which is used for creating web pages. It
describes the structure of web pages through HTML elements or tags. These tags
are used to organize the pieces of content such as 'heading,' 'paragraph,' 'table,'
'Image,' and more. You don't see HTML tags when you open a webpage as
browsers don't display the tags and use them only to render the content of a web
page. In simple words, HTML is used to display text, images, and other resources
through a Web browser.
Web Browser:
UNIT 1 (MWA)
A web browser, which is commonly known as a browser, is a program that
displays text, data, pictures, videos, animation, and more. It provides a software
interface that allows you to click hyperlinked resources on the World Wide
Web. When you double click the Browser icon installed on your computer to
launch it, you get connected to the World Wide Web and can search Google or
type a URL into the address bar.
In the beginning, browsers were used only for browsing due to their limited
potential. Today, they are more advanced; along with browsing you can use them
for e-mailing, transferring multimedia files, using social media sites, and
participating in online discussion groups and more. Some of the commonly used
browsers include Google Chrome, Mozilla Firefox, Internet Explorer, Safari, and
more.
Hyper Text Transfer Protocol (HTTP) is an application layer protocol which enables
WWW to work smoothly and effectively. It is based on a client-server model. The
client is a web browser which communicates with the web server which hosts
the website. This protocol defines how messages are formatted and transmitted
and what actions the Web Server and browser should take in response to
different commands. When you enter a URL in the browser, an HTTP command is
sent to the Web server, and it transmits the requested Web Page.
Web Servers
Web pages are a collection of data, including images, text files, hyperlinks,
database files etc., all located on some computer (also known as server space) on
the Internet. A web server is dedicated software that runs on the server-side.
When any user requests their web browser to run any web page, the webserver
places all the data materials together into an organized web page and forwards
they back to the web browser with the help of the Internet. Therefore, we can
conclude that: -
This intercommunication of a web server with a web browser is done with the
help of a protocol named HTTP (Hypertext Transfer Protocol). These stored web
pages mostly use static content, containing HTML documents, images, style
sheets, text files, etc. However, web servers can serve static as well as dynamic
contents. Web Servers also assists in emailing services and storing files. Therefore
it also uses SMTP (Simple Mail Transfer Protocol) and FTP (File Transfer
Protocol) protocols to support the respective services. Web servers are mainly
used in web hosting or hosting the website's data and running web-based
applications.
UNIT 1 (MWA)
The hardware of the web servers are connected to the Internet that manages the
data exchange facility within different connected devices. In contrast, the
software of web server software is responsible for controlling how a user accesses
delivered files. Typically, web server management is an ideal example of the
client/server model. Therefore, it is compulsory for all computers that host
websites (whether with state or dynamic web page content) to have web server
software.
The term "URL" stands for Uniform Resources Locator. In general, a URL is nothing
more than but an address of a particular resource available on the web (or
Internet). Therefore every correct (or valid) Uniform Resource Locator (or URL)
points or refers to a particular resource available on the Internet. These resources
are usually the web-pages such as HTML pages, documents, images, etc. Although
some exceptions always exist, one of the most common being a URL that points
to (or refers to) a particular resource that is no longer available (or has been
moved to a new address).
However, the Web servers handle both the URL and the address of the resource
represented by the URL. Therefore, it is up to the owner (or one how has the
responsibility) of the webserver to carefully manage that resource and its
associated URL. Now let us see some examples which will help us to know how
a URL (or Uniform Resource Locator) actually looks like:
https://www.javatpoint.com/
https://www.javatpoint.com/python-tutorial
UNIT 1 (MWA)
These are some examples of standard URLs. Any of the given URLs can also be
directly typed into the web browser's search box to tell it to load that specific web
page.
To understand the structure of a URL more precisely, let's take a look at all its
essential parts:
HTTP
https://javatpoint.com/javascript-example
This part of the URL usually provides information about the mentioned protocol
used to access the web pages. Nowadays, HTTP is one of the most used
commonly used protocols. The HTTP stands for HyperText Transfer Protocol. The
HTTP usually tells your browser to encrypt the information you entered on a web
page, such as passwords and credit card information, to ensure that the
cybercriminal cannot access that data. The primary purpose of using this protocol
is to protect the visitors on the website.
Domain name
https://javatpoint.com/javascript-example
TLD
https://javatpoint.com/javascript-example
The TLD stands for the Top Level Domain. It is used to categorize the websites
according to their content and other essential factors such as private,
government, educational, etc. One of the most common is the ".com" to which
almost everyone is familiar. However, there are other TLD that exist too. For
example, the ".edu" is for educational websites, ".gov" is used for the sites that
are run and owned by the government, etc.
UNIT 1 (MWA)
SUB directory
https://javatpoint.com/javascript-example
A URL also contains several other things, such as the folders, subfolders, and even
sub-directories present on a given website. Any parameters stored in the URL
allow the users to jump on a specific URL point in the resource. In addition, a
subdirectory also helps the users to know on which specific section of the web
page they are.
Web development tools are designed to simplify and streamline the development
lifecycle for web developers without compromising on performance.
There are many types of rapid web app development tools available that support
and simplify a particular aspect of development.
They contain pre-written code snippets and templates that can be reused and
recalled in your code.
Come inbuilt with features such as syntax highlighting, debugger, and code auto-
completion that simplifies the code writing and editing process
Assists you in creating, editing and maintaining a database. You can also create
different queries to access databases.
Establishes a connection between the server and client browsers and processes
user requests.
Automates and performs repetitive tasks in your code so you don’t have to micro-
manage each task.
Create an environment on your PC to test and run your web apps and solutions
without requiring an internet connection or investing in web hosting
These are just some of the many tools available for web developers. Moreover,
with the evolving world of technologies, new web frameworks and tools are
being developed every day.
Even the existing tools to build apps are getting exciting new updates. It is
essential for your company to stay up to date with new tech and cater to ever-
advancing customers.
To help you find your ideal fit-out of the expansive pool of tools for the web, we
have curated a list of some of the best tools for web development, both frontend
and backend.
UNIT 1 (MWA)
These top web development tools are in use by thousands of developers, and we
assure you, you won’t regret using any of them.
Web Technology –
Web Technology refers to the various tools and techniques that are utilized in the
process of communication between different types of devices over the Internet. A
web browser is used to access web pages. Web browsers can be defined as
programs that display text, data, pictures, animation, and video on the Internet.
Hyperlinked resources on the World Wide Web can be accessed using software
interfaces provided by Web browsers.
World Wide Web (WWW): The World Wide Web is based on several
different technologies: Web browsers, Hypertext Markup Language (HTML),
and Hypertext Transfer Protocol (HTTP).
Web Browser: The web browser is an application software to explore www
(World Wide Web). It provides an interface between the server and the
client and requests to the server for web documents and services.
Web Server: Web server is a program which processes the network requests
of the users and serves them with files that create web pages. This exchange
takes place using Hypertext Transfer Protocol (HTTP).
Web Pages: A webpage is a digital document that is linked to the World
Wide Web and viewable by anyone connected to the internet has a web
browser.
Web Development: Web development refers to the building, creating, and
maintaining of websites. It includes aspects such as web design, web
publishing, web programming, and database management. It is the creation
of an application that works over the internet i.e. websites.
Frontend Development: The part of a website that the user interacts directly
is termed as front end. It is also referred to as the ‘client side’ of the
application.
UNIT 1 (MWA)
Frontend Languages: The front-end portion is built by using some languages which
are discussed below:
HTML: HTML stands for Hypertext Markup Language. It is used to design the
front-end portion of web pages using a markup language. HTML is the
combination of Hypertext and Markup language. Hypertext defines the link
between the web pages. The markup language is used to define the text
documentation within the tag which defines the structure of web pages.
UNIT 1 (MWA)
CSS: Cascading Style Sheets fondly referred to as CSS is a simply designed
language intended to simplify the process of making web pages presentable.
CSS allows you to apply styles to web pages. More importantly, CSS enables
you to do this independent of the HTML that makes up each web page.
JavaScript: JavaScript is a famous scripting language used to create magic on
the sites to make the site interactive for the user. It is used to enhancing the
functionality of a website to running cool games and web-based software.
AJAX: Ajax is an acronym for Asynchronous JavaScript and XML. It is used to
communicate with the server without refreshing the web page and thus
increasing the user experience and better performance.
There are many other languages through which one can do front-end development
depending upon the framework for
example Flutter user Dart, React uses JavaScript and Django uses Python, and
much more.
Backend Languages: The back end portion is built by using some languages which
are discussed below:
PHP: PHP is a server-side scripting language designed specifically for web
development. Since PHP code executed on the server-side, so it is called a
server-side scripting language.
Node.js: Node.js is an open-source and cross-platform runtime environment
for executing JavaScript code outside a browser. You need to remember that
NodeJS is not a framework, and it’s not a programming language. Most
people are confused and understand it’s a framework or a programming
language. We often use Node.js for building back-end services like APIs like
Web App or Mobile App. It’s used in production by large companies such as
PayPal, Uber, Netflix, Walmart, and so on.
Python: Python is a programming language that lets you work quickly and
integrate systems more efficiently.
Ruby: Ruby is a dynamic, reflective, object-oriented, general-purpose
programming language. Ruby is a pure Object-Oriented language developed
by Yukihiro Matsumoto. Everything in Ruby is an object except the blocks but
there are replacements too for it i.e. procs and lambda. The objective of
Ruby’s development was to make it act as a sensible buffer between human
programmers and the underlying computing machinery.
Java: Java is one of the most popular and widely used programming
languages and platforms. It is highly scalable. Java components are easily
available.
UNIT 1 (MWA)
JavaScript: JavaScript can be used as both (front end and back end)
programming.
Golang: Golang is a procedural and statically typed programming language
having the syntax similar to C programming language. Sometimes it is termed
as Go Programming Language.
C#: C# is a general-purpose, modern and object-oriented programming
language pronounced as “C sharp”.
DBMS: The software which is used to manage database is called Database
Management System (DBMS).
Web Standards
Web standards are defined as technologies that are used in building websites.
Web Standards consist of technical documents known as specifications, which
provide detailed information on how web technology should work. These
documents are really helpful for engineers in making web applications in a more
efficient manner for the users.
Need for Web Standards –
After the creation of the web, it was accessible by people by using a computer
system, at that time only a handful of systems were there to access the web but
with the rise of technology the way people access the web changed completely.
Now people use different types of devices like mobile phones, tablets, laptops,
desktops, etc. There are even more devices like interfaces provided in vehicles
for navigation and smart speakers using speech. Moreover, screen sizes are also
different when accessing the web and different operating systems are also
available along with a number of web browsers. All of this has made it quite
different for everyone to access the same web in a different manners on
different devices.
Hence it becomes a need to make certain standards while developing websites
so that those websites work smoothly on all devices with different
configurations. Web standards form the foundation of rules and regulations for
the developers for developing websites.
Components of Web Standards
1. W3C recommendations for HTML, CSS, and also for different image formats to
be used in websites.
UNIT 1 (MWA)
2. Living Standards provided by Web Hypertext Application Technology Working
Group (WHATWG), these standards consist of Document Object Model
Standard, URL Standard, Encoding Standards, etc.
3. JSON standards are given by ECMA International.
4. Recommendations of the International Organization for Standardization (ISO).
Open Standards
Tim Berners-Lee and representatives of the W3C organization had given the most
precious feature of Web Standards which says that the web will always be free for
use and also for the contribution by developers means it will not limit itself by
patent rights or licensing. Because of this feature, everyone is independent to
write code for building websites without paying anything to anyone. Because of
its openness, there is no chance of censorship means a single organization cannot
control it.
World Wide Web Consortium (W3C)
The credit for maintaining and creating new web standards goes to World Wide
Web Consortium (W3C) which is considered the main organization. A number of
standards have been defined by W3C which includes different languages that are
used in making websites like HTML, CSS, JavaScript, etc.
Any website will be considered to follow the given web if that website or web
page has correct HTML and CSS. These languages also need to comply with
semantic and accessibility procedures.
Features of World Wide Web Consortium (W3C)
1. Web for All: It is the main goal of (W3C) to make web service accessible to all
people, no matter what their software or hardware configuration is, and also
no matter where they live. This feature helps people worldwide to connect and
communicate with each other.
2. Web on Everything: This feature ensures that each and every device can easily
access the web because people are using a large variety of devices and
interfaces like mobiles, tablets, smart assistants, etc.
3. Web of Easy Interaction: Websites should be easy to load and must be
interactive so that users don’t feel bored. It should be built by keeping in mind
the interest of users.
4. Web of Trust: The web should be secure and must win the trust of its users so
guidelines are made to use various security measures like SSL certificates for
UNIT 1 (MWA)
websites, HTTPS protocol which is more secure than HTTP, and many other
measures which reduce the risk of attacks on these websites.
Web Application
A web-application is an application program that is usually stored on a remote
server, and users can access it through the use of Software known as web-
browser.
It is a type of computer program that usually runs with the help of a web browser
and also uses many web technologies to perform various tasks on the internet.
A web application can be developed for several uses, which can be used by
anyone like it can be used as an individual or as a whole organization for several
reasons.
In general, a web application can contain online shops (or we can also say them e-
commerce shops), webmail's, calculators, social media platforms, etc. There is
also some kind of web application that usually requires a special kind of web
browser to access them. We cannot access those kinds of web applications by
using regular web- browsers. However, most of the web applications available on
the internet can be accessed using a standard web browser.
Let's understand how the flow of the typical web application looks like.
UNIT 1 (MWA)
Document centric web sites are static html documents stored on web server that
is sent directly to the client on request. The web pages are manually updated with
the help of respective tools. These applications are static, simple, stable and take
less time to respond. These applications are costly to maintain (at the time of
update), having inconsistency problem because of being static, no timely update
of information.
Interactive web applications are offered by CGI, HTML Forms. It includes radio
buttons, selection menus, forms etc. These applications are simple and fast. In
this kind of application the web pages and links are generated according to user
input.
These kind of web applications are capable of handing the workflow among
companies, private authorities or public authorities. Web services are included for
UNIT 1 (MWA)
interoperability. It is robust, reliable and flexible to handle workflow with
autonomy of companies. B2B e-commerce solutions are best example of such
applications.
These kind of applications are mainly used as group applications where group
communications are important part. Chat rooms, online forums, e-learning
websites or websites where information are shared with option of editing like
Wikipedia are some examples of such web application.
This kind of web applications are those where single access point is there to
separate different sources of information and services. Search engines,
community portals etc. are best examples of portal oriented application.
These kind of applications provides customized facilities for any device from
anywhere at any time. It has limited interaction facility and support limited
device. It require advance knowledge of context where the web application is
being used for dynamic adjustment. Services based on location is an example of
such web application.
It is the integral part of web application. It consists of: Present, Hypertext, and
Content.
1. Natural Content - It includes the geographical location from where the web
applications are accessed and availability of the web application. Global
accessibility of web application with 24*7 availability improves the
performance, stability and demand of the web application.
2. Social Content - It is related to user specific aspect. There are thousands of
competitive web applications around the globe, the user need spontaneous
and immediate benefits. Scalability and multiculturalism are extremely
essential feature required for web application.
3. Technical Content - It is related to network of web application and the
devices where web application are used. Connection bandwidth, stability,
reliability etc. are some essential features that affect the performance of
UNIT 1 (MWA)
web application. Device specification, browser configuration, version etc.
are responsible for web application performance and accessibility.
Development related characteristics
The definition of web app architecture is broad and depends on the focus of
building web applications.
UNIT 1 (MWA)
A web application architecture is a model of interaction between web application
components. The kind of architecture for web application strictly depends on the
way application logic will be allocated among client and server sides.
Technically, it’s the skeleton of a web app, including its elements, databases,
systems, servers, interfaces, and all the communication happening between
them. In more abstract terms, it indicates the logic behind responses to client and
server requests.
Being an important part of developing any web app, it makes sure your design is
efficient and scalable, which means it will work well under a variety of conditions
and avoid downtime. Otherwise, a business app will irritate users with numerous
bugs and turn them away from cooperating with it.
Greater business results: The right web application architecture can save your
company time and money over the long term, making sure that your website
operates at its optimal capacity and runs smoothly without any problems.
Better app performance: A solid web app architecture introduces a great degree
of flexibility, meaning its adaptiveness to dynamic market fluctuations and
customer demands.
The vision on the overall structure makes it easier for developers to work on an
app in several modules and introduce new features without interrupting the web
app’s work.
This way, overall security increases, making the software stand all the common
safety threats like malicious attacks.
Single Tier Architecture – Generally single tier architecture is used for small
applications in which there is one server (both the backend and the frontend) and
Single-tier deployment is cost-effective.
But having all the resources on the same machine can create an availability and
security risk. If the server is down, the application will be down, and it will not
UNIT 1 (MWA)
communicate with the database. If the server is externally attacked, you are at
greater risk of data loss if you do not have a replica of your database.
Two Tier Architecture – The two-tier architecture is like client server application.
The direct communication takes place between client and server. There is no
intermediate between client and server. Because of tight coupling a 2 tiered
application will run faster.
The chief benefit of three-tier architecture is that because each tier runs on its
own infrastructure, each tier can be developed simultaneously by a separate
development team, and can be updated or scaled as needed without impacting
the other tiers.
For decades three-tier architecture was the prevailing architecture for client-
server applications. Today, most three-tier applications are targets
for modernization, using cloud-native technologies such as containers and micro-
services, and for migration to the cloud.
UNIT 1 (MWA)
Presentation tier
The presentation tier is the user interface and communication layer of the
application, where the end user interacts with the application. Its main purpose is
to display information to and collect information from the user. This top-level tier
can run on a web browser, as desktop application, or a graphical user interface
(GUI), for example. Web presentation tiers are usually developed using HTML, CSS
and JavaScript. Desktop applications can be written in a variety of languages
depending on the platform.
The application tier, also known as the logic tier or middle tier, is the heart of the
application. In this tier, information collected in the presentation tier is processed
- sometimes against other information in the data tier - using business logic, a
specific set of business rules. The application tier can also add, delete or modify
data in the data tier.
The application tier is typically developed using Python, Java, Perl, PHP or Ruby,
and communicates with the data tier using API calls.
Data tier
The data tier, sometimes called database tier, data access tier or back-end, is
where the information processed by the application is stored and managed. This
can be a relational database management system such as PostgreSQL, MySQL,
MariaDB, Oracle, DB2, Informix or Microsoft SQL Server, or in a NoSQL Database
server such as Cassandra, CouchDB or MongoDB.