0% found this document useful (0 votes)
20 views7 pages

WebTechnology Unit - 1 Notes

The document provides an overview of web technology, explaining how the World Wide Web operates through a client-server model, where browsers request data from servers. It details the processes involved in web communication, including DNS resolution, TCP/IP protocols, and the structure of URLs. Additionally, it covers the roles of HTTP and HTTPS in data transmission, as well as the importance of web standards set by organizations like W3C.

Uploaded by

pandeyshashwat15
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

WebTechnology Unit - 1 Notes

The document provides an overview of web technology, explaining how the World Wide Web operates through a client-server model, where browsers request data from servers. It details the processes involved in web communication, including DNS resolution, TCP/IP protocols, and the structure of URLs. Additionally, it covers the roles of HTTP and HTTPS in data transmission, as well as the importance of web standards set by organizations like W3C.

Uploaded by

pandeyshashwat15
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

‭onedaystudy.

online‬

‭Web Technology - Unit 1 Notes‬


‭1. How the Web Works‬
‭ he World Wide Web (WWW) is a system of interlinked documents and resources,‬
T
‭accessible via the internet. It uses a client-server model where a web browser (client)‬
‭requests data from a web server.‬

‭Steps in How the Web Works:‬

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
‭ he‬‭Client-Server Model‬‭is the backbone of the World‬‭Wide Web. It defines how devices‬
T
‭(clients) and web servers communicate with each other over the internet to exchange‬
‭information.‬
ed

‭1. Understanding the Client-Server Model‬

‭●‬ 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 system‬‭that stores, processes, and‬
‭delivers web pages, applications, and data to clients upon request.‬

‭ he‬‭client and server communicate‬‭using‬‭HTTP (Hypertext‬‭Transfer Protocol)‬‭or‬


T
‭HTTPS (HTTP Secure)‬‭to exchange information over the‬‭internet.‬

‭2. How the Client-Server Model Works‬

‭Step-by-Step Communication Process:‬

‭1.‬ ‭Client Request Initiation:‬


‭onedaystudy.online‬

‭‬ 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 the‬‭IP address‬‭of the website‬‭is cached.‬
‭○‬ ‭If not, it queries a‬‭Domain Name System (DNS)‬‭server‬‭to translate the‬
‭domain name (‬‭example.com‬ ‭) into an‬‭IP address‬‭.‬
‭ .‬ ‭Establishing a Connection:‬
3
‭○‬ ‭Using the‬‭TCP/IP (Transmission Control Protocol/Internet‬‭Protocol)‬‭suite,‬
‭the browser establishes a connection with the web server.‬
‭4.‬ ‭HTTP Request Sent:‬
‭○‬ ‭The browser sends an‬‭HTTP GET request‬‭to fetch the web page from the‬

y‬
‭server.‬

‭Example‬

d
GET /index.html HTTP/1.1‬

Host: www.example.com‬

‭5.‬ ‭Server Processes the Request:‬


tu
‭○‬ ‭The web server receives the request.‬
s
‭○‬ ‭It checks if the requested resource (HTML page, CSS, JavaScript, images) is‬
‭available.‬
ay
‭○‬ ‭If available, the server prepares an‬‭HTTP response‬‭.‬
‭6.‬ ‭Server Sends Response to Client:‬
‭○‬ ‭The server responds with an‬‭HTTP status code‬‭and the requested resource.‬

‭Example‬
ed

HTTP/1.1 200 OK‬


Content-Type: text/html‬

‭on

‭○‬ ‭(Followed by the HTML content of the web page.)‬


‭7.‬ ‭Client Receives and Renders Web Page:‬
‭○‬ ‭The browser receives the response.‬
‭○‬ ‭It processes the HTML, CSS, and JavaScript files.‬
‭○‬ ‭The web page is displayed to the user.‬

‭3. Domain Name System (DNS)‬


D www.example.com‬
‭ NS translates human-friendly domain names (e.g.,‬‭ ‭) into IP addresses‬
‭that computers use to identify each other.‬

‭How DNS Works:‬


‭onedaystudy.online‬

‭ .‬
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

‭4. TCP/IP (Transmission Control Protocol / Internet‬


‭Protocol)‬

y‬
‭ CP/IP is the primary communication protocol of the internet, ensuring that data is‬
T
‭transmitted efficiently between devices.‬

🔹 TCP (Transmission Control Protocol)‬

d

‭ CP is a‬‭connection-oriented protocol‬‭, meaning it‬‭establishes a reliable connection before‬


T

‭sending data. It ensures that:

✅‭ Errors are detected and corrected.‬

⚙️ How TCP Works:‬



s tu
Data is delivered‬‭accurately‬‭and‬‭in order‬‭.‬
‭ Lost packets are‬‭retransmitted‬‭.‬
ay
‭1.‬ C ‭ onnection Establishment (Three-Way Handshake)‬
‭Before sending data, TCP establishes a connection between client and server.‬
‭○‬ ‭Client sends a‬‭SYN‬‭request to initiate a connection.‬
‭○‬ ‭Server responds with‬‭SYN-ACK‬‭(Acknowledgment).‬
‭○‬ ‭Client sends‬‭ACK‬‭, and the connection is established.‬
ed

‭2.‬ ‭Data Transmission‬


‭○‬ ‭TCP breaks data into‬‭packets‬‭.‬
‭○‬ ‭Each packet is numbered and sent in order.‬
‭○‬ ‭If a packet is lost, TCP‬‭retransmits‬‭it.‬
‭3.‬ ‭Connection Termination‬
‭on

‭○‬ ‭After data transfer, both client and server‬‭send FIN‬‭messages 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‬

I‭P is responsible for addressing and routing data packets. It ensures that data reaches the‬
‭correct destination.‬

‭Types of IP:‬

‭1.‬ ‭IPv4 (Internet Protocol Version 4)‬


‭○‬ ‭Uses a‬‭32-bit address‬‭(e.g.,‬‭192.168.1.1‬ ‭)‬
‭○‬ ‭Limited number of unique addresses.‬
‭2.‬ ‭IPv6 (Internet Protocol Version 6)‬
2001:0db8:85a3::8a2e:0370:7334‬
‭○‬ ‭Uses a‬‭128-bit address‬‭(e.g.,‬‭ ‭)‬
‭○‬ ‭Provides‬‭a much larger address space‬‭.‬

y‬
‭How IP Works?‬

‭‬ E
● ‭ ach device on the internet has a‬‭unique IP address‬‭.‬
‭●‬ ‭Routers‬‭forward‬‭data packets to the correct destination based on IP addresses.‬

d
‭●‬ ‭IP‬‭does not guarantee‬‭reliable delivery (handled by TCP).‬

‭2. UDP (User Datagram Protocol)‬

tu
‭ DP is a‬‭connectionless protocol‬‭, meaning it does‬‭not establish a connection before‬
U
‭sending data. Unlike TCP, UDP is‬‭faster but less reliable‬‭.‬

⚙️ How UDP Works‬



s
ay
✅ Sends data without waiting for acknowledgment.‬

✅ No error correction or retransmission.‬

✅ Best for applications that prioritize‬‭speed‬‭over‬‭reliability‬‭.‬

📌 Uses of UDP‬
ed

‭●‬ L ‭ ive Streaming (YouTube, Netflix, Twitch)‬‭– Speed‬‭is more important than lost‬
‭packets.‬
‭●‬ ‭Online Gaming (PUBG, Call of Duty, Fortnite)‬‭– Quick‬‭data exchange matters‬
‭on

‭more than reliability.‬


‭●‬ ‭VoIP Calls (WhatsApp, Zoom, Skype)‬‭– Minor delays are acceptable for real-time‬
‭communication.‬
‭●‬ ‭DNS (Domain Name System)‬‭– Fast lookup of IP addresses.‬

‭4. Conclusion‬
‭Both‬‭TCP/IP and UDP‬‭play crucial roles in the internet:‬

‭‬ T
● ‭ CP‬‭is used when‬‭accuracy‬‭and‬‭reliability‬‭are important.‬
‭●‬ ‭UDP‬‭is used when‬‭speed‬‭is more important than reliability.‬

‭Would you like any diagrams to illustrate this further? 😊‬


‭onedaystudy.online‬

‭5. Hypertext Transfer Protocol (HTTP & HTTPS)‬


‭HTTP (HyperText Transfer Protocol)‬

‭‬ 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 not‬‭retain user session data.‬

‭HTTPS (HyperText Transfer Protocol Secure)‬

‭‬ A
● ‭ secure version of HTTP that uses‬‭SSL/TLS encryption‬‭.‬

y‬
‭●‬ ‭Protects against‬‭man-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

‭7. How Browsers Work‬


‭ eb browsers (Chrome, Firefox, Safari) act as clients that request, interpret, and display‬
W
‭on

‭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.‬

‭8. Web Standards and W3C‬


‭onedaystudy.online‬

‭ eb standards ensure consistency across browsers and devices. They are set by‬
W
‭organizations like‬‭W3C (World Wide Web Consortium)‬‭.‬

‭1. Role of W3C (World Wide Web Consortium)‬

‭ he‬‭W3C (World Wide Web Consortium)‬‭is the main organization‬‭that develops and‬
T
‭maintains web standards. It was founded by‬‭Tim Berners-Lee‬‭(the inventor of the web) in‬
‭1994‬‭. The W3C ensures that web technologies are‬‭universal,‬‭accessible, and‬
‭interoperable‬‭across all devices and platforms.‬

‭2. Important Web Standards:‬

y‬
‭‬
● ‭ TML5‬‭(Markup language)‬
H
‭●‬ ‭CSS3‬‭(Styling)‬
‭●‬ ‭JavaScript (ES6+)‬‭(Interactivity)‬
‭●‬ ‭Web Accessibility Guidelines (WCAG)‬

d
‭●‬ ‭HTTP, HTTPS Standards‬

‭9. Web Server Basics‬


tu
‭A web server stores, processes, and delivers web pages.‬

‭Types of Web Servers:‬


s
ay
‭‬ A
● ‭ pache‬‭(Open-source, widely used)‬
‭●‬ ‭NGINX‬‭(High-performance, load balancing)‬
‭●‬ ‭Microsoft IIS‬‭(Windows-based web server)‬
ed

‭Common Server Components:‬

‭‬ H
● ‭ osting Files‬‭: HTML, CSS, JS, images.‬
‭●‬ ‭Handling Requests‬‭: Processing GET, POST requests.‬
‭●‬ ‭Logging & Security‬‭: Monitoring traffic, handling HTTPS.‬
‭on

‭10. HTTP Methods (GET & POST)‬


‭HTTP defines various request methods:‬

‭GET:‬

‭‬ R
● ‭ etrieves data from a server.‬
‭●‬ ‭Data is sent in the‬‭URL 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 the‬‭request body‬‭(secure, not visible‬‭in 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‬

‭TCP/IP & UDP‬

‭HTTP & HTTPS‬

‭URL Structure‬
s tu
‭Resolves domain names to IP addresses.‬

‭TCP ensures reliable delivery, UDP is faster but unreliable.‬

‭HTTP is stateless, HTTPS is secure (SSL/TLS).‬

‭Protocol, domain, port, path, query, fragment.‬


ay
‭Browser Working‬ ‭Fetching, parsing, rendering, and executing scripts.‬

‭Web Standards‬ ‭HTML5, CSS3, JS, WCAG, W3C guidelines.‬


ed

‭Web Server‬ ‭Hosts websites, processes HTTP requests.‬

‭GET & POST‬ ‭GET retrieves, POST submits data securely.‬

‭ hese notes provide a complete overview of Unit 1 of Web Technology, covering all major‬
T
‭on

‭concepts in detail.‬

You might also like