1 Web Fundamentals And Architecture

Web Technology I · Unit 1

Web Fundamentals and Architecture

Exam-focused notes for Web Fundamentals and Architecture (Web Technology I, BIT251): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.

Web Fundamentals and Architecture in short

The web is a system of linked documents and services that people reach through a browser. This chapter explains how web pages are described, delivered and structured. It also shows how a browser and a server talk to each other.

Web Fundamentals and Architecture: notes

Hypertext and markup concepts

Hypertext is text that contains links to other text. A click on a link takes the reader to another page, which may be on any server in the world. The web is built from hypertext documents joined by links.

A markup language describes a document by adding tags around its content. The tags tell the browser what each part means, such as a heading or a paragraph. They do not do any calculation.

  • HTML (HyperText Markup Language) describes the structure of web pages.
  • XML describes data with tags the author invents.
  • Markup is different from a programming language because it has no loops or conditions.
<h1>Welcome</h1>
<p>Read more on <a href="about.html">our about page</a>.</p>

The <a> tag creates the hypertext link. The href attribute holds the address of the target page.

Client server architecture types

In the client server model, a client asks for a service and a server provides it. A browser is the client. A web server such as Apache or Nginx is the server. The server keeps running and waits for requests.

The common architecture types are given below.

  • 1-tier: the user interface, logic and data all live on one computer, as in a desktop program.
  • 2-tier: the client holds the interface and logic. The database server holds the data. The client talks to the database directly.
  • 3-tier: the client shows the interface. A web or application server holds the logic. A separate database server stores the data.
  • n-tier: the logic is split into more layers, such as caching, security and services.
Point2-tier3-tier
LayersClient and databaseClient, application server, database
Business logicIn the clientIn the middle server
ScalabilityLowHigh
SecurityWeaker, client reaches the databaseStronger, database is hidden
MaintenanceHarder, update every clientEasier, update the server

The 3-tier design is used by most web applications today. The browser never touches the database. Only the application server does.

What this unit covers

  • Hypertext and markup concepts
  • Client server architecture types
  • Web 1.0 versus Web 2.0
  • Static websites versus dynamic websites
  • Web pages and website structure
  • HTTP request and response

Client server architecture types

2081 · 5 marks

Describe about the client server architecture. [5]

Client-server architecture is a distributed computing model in which tasks or workloads are partitioned between service providers (servers) and service requesters (clients). The client and server communicate over a network using a request-response mechanism. --- - A client is a computer or applic...

Open this answer on its own page →

2079 · 5 marks

What do you mean by client server architecture? Describe different types of client server architectures. [5]

Client-server architecture is a distributed computing model in which tasks or workloads are divided between service providers (servers) and service requesters (clients). The client sends a request to the server over a network, the server processes the request, and returns the appropriate response...

Open this answer on its own page →

0 · 5 marks

Describe the client server architecture and its types. [5]

Client-server architecture is a distributed computing model in which tasks or workloads are partitioned between service providers (servers) and service requesters (clients). The client sends a request to the server over a network, the server processes the request, and returns the appropriate resp...

Open this answer on its own page →

Static websites versus dynamic websites

2081 · 5 marks

What is a web page? How static web sites are different from dynamic web sites. [1+4]

Show solved answer

Web Page, Static vs Dynamic Websites


What is a Web Page? [1 Mark]

A web page is a document written in HTML (HyperText Markup Language) that can be displayed in a web browser. It may contain text, images, videos, hyperlinks, and other multimedia elements. Web pages are accessed over the internet using a URL (Uniform Resource Locator) and are hosted on web servers.


Static vs Dynamic Websites [4 Marks]

Static Website

A static website is one where web pages are pre-built and stored on the server as fixed HTML files. Every user who visits the page receives the same content, regardless of who they are or when they visit. The content does not change unless the developer manually edits the HTML file.

Characteristics:

  • Built using only HTML, CSS, and sometimes JavaScript (client-side)
  • No interaction with a database
  • Fast to load and easy to host
  • Suitable for simple, informational websites (e.g., a personal portfolio)

Dynamic Website

A dynamic website is one where web pages are generated on the fly by the server in response to a user's request. The content can change based on user input, time, location, or data stored in a database.

Characteristics:

  • Built using server-side technologies such as PHP, ASP.NET, Node.js, Python (Django/Flask), etc.
  • Interacts with a database (e.g., MySQL, MongoDB) to fetch or store data
  • Content is personalized and changes for different users or conditions
  • Suitable for complex applications (e.g., e-commerce sites, social media, online banking)

Comparison Table

FeatureStatic WebsiteDynamic Website
ContentFixed, same for all usersChanges based on user/request
TechnologyHTML, CSSHTML + Server-side scripting (PHP, etc.)
DatabaseNot requiredRequired
SpeedFasterRelatively slower
MaintenanceDifficult (manual editing)Easier (content managed via CMS/DB)
CostLowHigher
ExamplePersonal portfolio, brochure siteFacebook, Amazon, Gmail

In summary, static websites deliver the same pre-stored content to every visitor, while dynamic websites generate content dynamically based on user interaction and database queries, making them more flexible and interactive.

Open this answer on its own page →

2080.2 · 5 marks

What is XML Tree? Differentiate static website from dynamic website. [5]

--- An XML Tree is a hierarchical tree structure that represents the structure of an XML document. Every XML document forms a tree structure starting from the root element, with all other elements branching out as child nodes. - An XML document always has a single root element - Every element (ex...

Open this answer on its own page →

HTTP request and response

2080 · 5 marks

Describe HTTP Request and Response. [5]

HTTP is an application-layer protocol used for communication between a client (usually a web browser) and a server on the World Wide Web. It follows a simple request-response model. --- An HTTP request is a message sent by the client to the server asking for a resource. It consists of the followi...

Open this answer on its own page →

Hypertext and markup concepts

2079 · 10 marks

What is the meaning of hypertext and markup in HTML. Create a HTML page having title "Myfirstpage" and a Meta tag with name author having content "Gunnu". The page should have a body part having a div with id DV_1 which should contain an ordered list of fruit items namely Orange, Apple2, Banana3 and Kiwi. The item kiwi should also have link to www.kiwi.com. Insert a comment "This is kiwi" after the item Kiwi. Also display an alert message "Helloworldx" in onload() event of the body.[10]

Show solved answer

HTML: Hypertext, Markup, and Complete Page Creation

Part 1: Meaning of Hypertext and Markup in HTML

Hypertext

Hypertext refers to text that contains links (hyperlinks) to other documents or resources. Unlike plain linear text, hypertext allows users to navigate non-linearly by clicking on links that connect one page or resource to another. The "hyper" prefix means "beyond" or "above" ordinary text, indicating that the text goes beyond simple reading and enables interconnected navigation across the web.

Example: Clicking a link on one webpage that takes you to another webpage is the concept of hypertext in action.

Markup

Markup refers to the use of tags and annotations embedded within the content to define the structure, formatting, and meaning of the text. In HTML, markup is done using angle-bracket tags such as <p>, <h1>, <div>, etc. These tags "mark up" the plain content to tell the browser how to display or interpret it.

Example: <b>Hello</b> marks the word "Hello" to be displayed in bold.

Together: HTML = HyperText Markup Language

HTML combines both concepts: it uses markup tags to structure content, and supports hypertext links to connect documents across the internet.


Part 2: Complete HTML Page

<!DOCTYPE html>
<html>

  <head>
    <title>Myfirstpage</title>
    <meta name="author" content="Gunnu">
  </head>

  <body onload="alert('Helloworldx')">

    <div id="DV_1">

      <ol>
        <li>Orange</li>
        <li>Apple2</li>
        <li>Banana3</li>
        <li>
          <a href="http://www.kiwi.com">Kiwi</a>
        </li>
        <!-- This is kiwi -->
      </ol>

    </div>

  </body>

</html>

Explanation of Each Part

ElementPurpose
<!DOCTYPE html>Declares the document as HTML5
<title>Myfirstpage</title>Sets the browser tab/title to "Myfirstpage"
<meta name="author" content="Gunnu">Meta tag specifying the author as "Gunnu"
<body onload="alert('Helloworldx')">Fires a JavaScript alert with "Helloworldx" when the page loads
<div id="DV_1">A division/container with id attribute set to DV_1
<ol>Creates an ordered list (numbered list) of fruit items
<li>Orange</li>, <li>Apple2</li>, <li>Banana3</li>Individual list items for the first three fruits
<a href="http://www.kiwi.com">Kiwi</a>Kiwi list item with a hyperlink pointing to www.kiwi.com
<!-- This is kiwi -->An HTML comment inserted after the Kiwi item (not visible in browser)

Expected Output in Browser

When the page loads:

  1. An alert box appears with the message: Helloworldx
  2. After dismissing the alert, the page displays a numbered list:
    1. Orange
    2. Apple2
    3. Banana3
    4. Kiwi   <-- clickable link to www.kiwi.com
    
Open this answer on its own page →

Web 1.0 versus Web 2.0

2080.2 · 5 marks

Differentiate Web1.0 from Web 2.0. [5]

--- Feature Web 1.0 Web 2.0 --------- Nature Read-only web (static) Read-Write web (dynamic) User Role Passive consumers of content Active creators and contributors of content Content Created only by website owners/developers Created and shared by users (User Generated Content) Interaction No or ...

Open this answer on its own page →