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.
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]
2079 · 5 marks
What do you mean by client server architecture? Describe different types of client server architectures. [5]
0 · 5 marks
Describe the client server architecture and its types. [5]
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 answerHide 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
| Feature | Static Website | Dynamic Website |
|---|---|---|
| Content | Fixed, same for all users | Changes based on user/request |
| Technology | HTML, CSS | HTML + Server-side scripting (PHP, etc.) |
| Database | Not required | Required |
| Speed | Faster | Relatively slower |
| Maintenance | Difficult (manual editing) | Easier (content managed via CMS/DB) |
| Cost | Low | Higher |
| Example | Personal portfolio, brochure site | Facebook, 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.
2080.2 · 5 marks
What is XML Tree? Differentiate static website from dynamic website. [5]
HTTP request and response
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 answerHide 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
| Element | Purpose |
|---|---|
<!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:
- An alert box appears with the message:
Helloworldx - After dismissing the alert, the page displays a numbered list:
1. Orange 2. Apple2 3. Banana3 4. Kiwi <-- clickable link to www.kiwi.com
Web 1.0 versus Web 2.0
Make Unit 1 stick
Practice BIT251 with flashcards & quizzes