Web Basics · Web and Internet Technology

Protocols of Internet, World Wide Web, URL, Web Server, Web Browser

Watch lectures

Protocols of Internet, World Wide Web, URL, Web Server, Web Browser

SVGVector Architecture Diagram (SVG)
WEB & INTERNET TECHNOLOGY · Module 1★ High PriorityProtocols, WWW & URLBEU CSE Sem 6 · Code 105614 · Web BasicsMNEMONICURL says where, HTTP says how, HTML says what. Browser asks, server answers.scheme://host:port/path?query#fragmentCore BreakdownProtocolsTCP/IP in four layers: application, transport, internet, network access.HTTP 80, HTTPS 443, FTP 21, SMTP 25, POP3 110, IMAP 143, DNS 53.WWWHyperlinked documents on web servers, found by URL, fetched by HTTP.Invented by Tim Berners-Lee at CERN (1989 to 1991); written in HTML.URLAddress of a resource: scheme, host, port, path, query and fragment.The fragment after # is used by the browser only, not sent to the server.ServerApache, Nginx, IIS accept HTTP requests and return files or script output.Replies carry a status code: 200 OK, 301 moved, 404 not found, 500 error.BrowserClient that requests by URL and renders HTML, CSS and JavaScript.Parts: UI, browser engine, rendering engine, network, JS interpreter.Diagram: Page Request1 Type URL in the browser2 DNS: name to IP address3 TCP connect (plus TLS)4 HTTP GET request sent5 200 OK + HTML, page renderedGETread dataPOSTsend dataURIvs URLURL = address · URI = name or address⚠️ Exam Traps & Viva Favorites① GET or POST for a login form?POST. GET puts values in the URL, so they arevisible, logged and bookmarkable. POST hidesthem in the request body.② URL versus URI?URI identifies a resource. A URL is a URI that alsosays how and where to fetch it. Every URL is aURI, but not the other way round.③ What is HTTP status 404?Not found: the server works but has no suchresource. 403 forbidden, 500 server error,301 moved permanently.Tip: URL parts are a classic short noteMaster Revision Table(learn it row by row!)PartExampleMeaningRemarkSchemehttpsProtocol usedhttp, https, ftp, mailto, fileHostwww.beu.ac.inServer name or IP addressResolved by DNSPort443Service portDefault 80 http, 443 httpsPath/results/index.phpResource on the serverAbsolute or relativeQuery?sem=6Name=value parametersJoined with &Fragment#topPlace inside the pageHandled by browser onlyQUICK FACTSHTTP 80 · HTTPS 443 · FTP 21 · SMTP 25 · POP3 110 · IMAP 143 · DNS 53 · SSH 22TCP is reliable and ordered; UDP is fast with no connection setupStatic site = fixed files; dynamic site = page built by a server scriptVERIFIED★ Golden rule: URL locates, HTTP transfers,HTML describes, the browser displays.

1. Internet Protocols

A protocol is a set of rules that defines the format, order and meaning of messages exchanged between computers. The Internet uses the TCP/IP suite, organised in four layers.

SVGVector Architecture Diagram (SVG)
Application Transport Internet (Network) Network Access HTTP, HTTPS, FTP, SMTP, POP3, IMAP, DNS, Telnet, SSH TCP (reliable), UDP (fast) IP, ICMP, ARP, routing Ethernet, Wi-Fi, PPP
Protocol Port Purpose
HTTP 80 Transfer web pages
HTTPS 443 HTTP over TLS (encrypted)
FTP 20/21 File transfer
SMTP 25 Send e-mail
POP3 / IMAP 110 / 143 Receive e-mail
DNS 53 Name to IP resolution
Telnet / SSH 23 / 22 Remote login (SSH is secure)
DHCP 67/68 Automatic IP assignment
TCP – Connection-oriented, reliable, ordered
UDP – Connectionless, low overhead (video, DNS)
IP – Addressing and routing of packets

2. World Wide Web (WWW)

The WWW is a system of interlinked hypertext documents (web pages) stored on web servers, identified by URLs, transferred by HTTP, written in HTML, and viewed in a browser. Invented by Tim Berners-Lee at CERN (1989–91).

Core building blocks (the "three pillars"):

  1. URL – where the resource is.
  2. HTTP – how it is fetched.
  3. HTML – what it contains.
MermaidDiagram
Rendering diagram…

3. URL (Uniform Resource Locator)

A URL is the address that uniquely identifies a resource on the Internet and tells how to reach it. (A URL is a kind of URI; URN names a resource, URL locates it.)

General syntax

scheme://user:password@host:port/path?query#fragment

SVGVector Architecture Diagram (SVG)
https://www.example.com:8080/blog/post.php?id=7&lang=en#top schemehost (domain) portpath query stringfragment
Part Example Meaning
Scheme / protocol https How to access (http, https, ftp, mailto, file)
Host www.example.com Domain name or IP of server
Port 8080 Optional; default 80 (http) / 443 (https)
Path /blog/post.php Location of the resource on server
Query ?id=7&lang=en Parameters (name=value pairs separated by &)
Fragment #top A section inside the page; handled by browser only

Absolute vs relative URL

  • Absolute: full address, https://beu.ac.in/notice/a.pdf.
  • Relative: relative to the current page, ../notice/a.pdf.

URL encoding

Unsafe characters are written as % + hex code, e.g. space → %20, & → %26.

Parsing a URL with JavaScript (tested)

const u = new URL("https://www.example.com:8080/blog/post.php?id=7&lang=en#top");
console.log(u.protocol); // https:
console.log(u.hostname); // www.example.com
console.log(u.port);     // 8080
console.log(u.pathname); // /blog/post.php
console.log(u.searchParams.get("id")); // 7
console.log(u.hash);     // #top

4. Web Server

A web server is software (and the machine running it) that accepts HTTP requests and returns responses: static files (HTML, CSS, images) or dynamic output generated by scripts (PHP, Node.js, ASP).

Server Notes
Apache HTTP Server Open source, modular, very common with PHP (XAMPP/LAMP)
Nginx Fast, event-driven, used as reverse proxy and load balancer
IIS Microsoft; runs ASP/ASP.NET
Node.js (Express) JavaScript on server

Functions: listen on a port, parse requests, map URL to file/script, run server-side code, send status code + headers + body, log requests, enforce security (HTTPS, authentication).

HTTP request and response

GET /index.html HTTP/1.1
Host: www.beu.ac.in
Accept: text/html

HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 1250

<html>...</html>
Method Use
GET Retrieve a resource (parameters in URL)
POST Send data in body (forms, login)
PUT / DELETE Replace / remove a resource
HEAD Headers only
Status Meaning
200 OK
301 / 302 Moved permanently / temporarily
400 / 401 / 403 / 404 Bad request / unauthorised / forbidden / not found
500 / 503 Server error / unavailable

5. Web Browser

A web browser is client software that requests resources by URL, interprets HTML/CSS/JavaScript and displays the result.

Examples: Chrome, Firefox, Safari, Edge (older: Mosaic, Netscape Navigator, Internet Explorer – legacy).

Main components:

  1. User interface – address bar, tabs, buttons.
  2. Browser engine – coordinates UI and rendering engine.
  3. Rendering engine – parses HTML/CSS and paints the page (Blink, Gecko, WebKit).
  4. Networking – HTTP/HTTPS requests.
  5. JavaScript interpreter – runs scripts (V8, SpiderMonkey).
  6. Data storage – cookies, localStorage, cache.

6. Static vs Dynamic website

Static Dynamic
Fixed HTML files Page built at request time by server script
No database Usually uses a database
Fast, simple Flexible, personalised

Frequently Asked Questions

QWhat is a protocol? Name four Internet protocols.

A protocol is a set of rules for communication. Examples: HTTP, FTP, SMTP, TCP/IP, DNS.

QWhat is the difference between TCP and UDP?

TCP is connection-oriented, reliable and ordered (web, e-mail); UDP is connectionless, unreliable but fast (streaming, DNS, VoIP).

QDefine URL and explain its parts. (Short note, asked in BEU 2026)

A URL (Uniform Resource Locator) is the address of a resource on the Internet. General form: scheme://host:port/path?query#fragment. Scheme says the protocol, host the server, port the optional port number, path the resource location, query carries parameters and fragment points to a part of the page. Example: https://www.beu.ac.in/results/index.php?sem=6#top. Absolute URLs give the full address; relative URLs depend on the current page.

QDifference between URL and URI?

URI identifies a resource (by name or location); URL is a URI that also tells how and where to reach it.

QWhat is the role of DNS in browsing?

It translates the domain name into the server's IP address before the browser connects.

QWhat is a web server? Name any three.

Software that serves web content over HTTP. Examples: Apache, Nginx, IIS.

QDifference between GET and POST?

GET sends data in the URL (visible, limited, bookmarkable, for retrieval); POST sends data in the body (hidden, large, for changes).

QWhat does HTTP status 404 mean?

The requested resource was not found on the server.

QExplain how a web page is fetched when you type a URL.

Browser parses URL → DNS lookup → TCP (and TLS) connection → HTTP GET → server responds → browser renders HTML and loads CSS, JS, images.

QWhat is the difference between a browser and a web server?

Browser is the client that requests and displays pages; web server stores and delivers them.

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Web and Internet Technology modules