WebTechnology Unit - 1 Notes
WebTechnology Unit - 1 Notes
online
y
. A
1 user enters a URL (Uniform Resource Locator) in a web browser.
2. The browser sends a request to a DNS (Domain Name System) to translate the
d
domain name into an IP address.
3. The request is forwarded to the appropriate web server using TCP/IP.
4. The server processes the request and sends the response (HTML, CSS, JavaScript,
or other resources).
tu
5. The browser renders the received response and displays the web page.
s
2. Client-Server Architecture in Web Technology
ay
heClient-Server Modelis the backbone of the WorldWide Web. It defines how devices
T
(clients) and web servers communicate with each other over the internet to exchange
information.
ed
● C lient:A client is any device (computer, mobile phone,tablet) with a web browser
(Chrome, Firefox, Edge, Safari) that requests web pages, resources, or data from a
on
web server.
● Server:A server is a powerful computer or systemthat stores, processes, and
delivers web pages, applications, and data to clients upon request.
A
○ user types a URL ( https://www.example.com ) in the web browser.
○ The browser sends an HTTP request to retrieve the webpage from the web
server.
2. DNS Resolution:
○ The browser checks if theIP addressof the websiteis cached.
○ If not, it queries aDomain Name System (DNS)serverto translate the
domain name (example.com ) into anIP address.
. Establishing a Connection:
3
○ Using theTCP/IP (Transmission Control Protocol/InternetProtocol)suite,
the browser establishes a connection with the web server.
4. HTTP Request Sent:
○ The browser sends anHTTP GET requestto fetch the web page from the
y
server.
Example
d
GET /index.html HTTP/1.1
Host: www.example.com
Example
ed
Content-Type: text/html
on
.
1 he user enters a URL in the browser.
T
2. The browser checks the cache for a saved DNS record.
3. If not found, the request is sent to a DNS resolver.
4. The resolver queries root servers, top-level domain (TLD) servers, and authoritative
servers.
5. The corresponding IP address is returned to the browser.
. The browser uses this IP address to connect to the web server.
6
y
CP/IP is the primary communication protocol of the internet, ensuring that data is
T
transmitted efficiently between devices.
d
○ After data transfer, both client and serversend FINmessages to close the
connection.
📌 Uses of TCP
● eb Browsing (HTTP, HTTPS)
W
● Email (SMTP, IMAP, POP3)
● File Transfers (FTP)
● Remote Login (SSH, Telnet)
🔹 IP (Internet Protocol)
onedaystudy.online
IP is responsible for addressing and routing data packets. It ensures that data reaches the
correct destination.
Types of IP:
y
How IP Works?
E
● ach device on the internet has aunique IP address.
● Routersforwarddata packets to the correct destination based on IP addresses.
d
● IPdoes not guaranteereliable delivery (handled by TCP).
tu
DP is aconnectionless protocol, meaning it doesnot establish a connection before
U
sending data. Unlike TCP, UDP isfaster but less reliable.
📌 Uses of UDP
ed
● L ive Streaming (YouTube, Netflix, Twitch)– Speedis more important than lost
packets.
● Online Gaming (PUBG, Call of Duty, Fortnite)– Quickdata exchange matters
on
4. Conclusion
BothTCP/IP and UDPplay crucial roles in the internet:
T
● CPis used whenaccuracyandreliabilityare important.
● UDPis used whenspeedis more important than reliability.
A
● request-response protocol used for communication between clients and servers.
● Requests and responses include headers and a body.
● Stateless: Each request is independent and does notretain user session data.
A
● secure version of HTTP that usesSSL/TLS encryption.
y
● Protects againstman-in-the-middle attacks.
● Ensures confidentiality, integrity, and authentication.
d
6. Anatomy of a URL
A URL (Uniform Resource Locator) consists of multiple parts:
https://
● Protocol:
www.example.com
● Domain Name:
tu
https://www.example.com:443/path/page.html?query=1#section
s
ay
443(Default for HTTPS)
● Port (Optional):
/path/page.html
● Path:
?query=1
● Query String:
#section
● Fragment/Anchor:
ed
web pages.
Browser Workflow:
.
1 ser Input: Entering a URL.
U
2. DNS Resolution: Translating domain name to IP.
3. HTTP Request: Sending request to the server.
4. Server Response: Receiving HTML, CSS, JavaScript.
5. Rendering Engine: Parsing and displaying content.
6. Execution: Running scripts, loading images, etc.
eb standards ensure consistency across browsers and devices. They are set by
W
organizations likeW3C (World Wide Web Consortium).
heW3C (World Wide Web Consortium)is the main organizationthat develops and
T
maintains web standards. It was founded byTim Berners-Lee(the inventor of the web) in
1994. The W3C ensures that web technologies areuniversal,accessible, and
interoperableacross all devices and platforms.
y
● TML5(Markup language)
H
● CSS3(Styling)
● JavaScript (ES6+)(Interactivity)
● Web Accessibility Guidelines (WCAG)
d
● HTTP, HTTPS Standards
H
● osting Files: HTML, CSS, JS, images.
● Handling Requests: Processing GET, POST requests.
● Logging & Security: Monitoring traffic, handling HTTPS.
on
GET:
R
● etrieves data from a server.
● Data is sent in theURL query string.
xample:
E
GET /search?q=web HTTP/1.1
POST:
onedaystudy.online
S
● ends data to a server (e.g., form submission).
● Data is sent in therequest body(secure, not visiblein the URL).
xample:
E
POST /submit HTTP/1.1
Content-Type: application/x-www-form-urlencoded
username=John&password=1234
Summary
Topic Key Points
y
Web Working ses client-server model, browser sends requests to a
U
server.
d
Client-Server lient requests, server responds, communication over
C
HTTP.
DNS
URL Structure
s tu
Resolves domain names to IP addresses.
hese notes provide a complete overview of Unit 1 of Web Technology, covering all major
T
on
concepts in detail.