Web Technology · ওয়েব টেকনোলজি
The web stack — HTML/CSS/JS, HTTP, REST vs SOAP and the MVC pattern.
- Past MCQs
- 53
- Written
- 67
- Chapters
- 5
How Web Technology is asked · পরীক্ষায় যেভাবে আসে
Our 79 papers that ask Web Technology (2015–2026) hold 120 of its questions; HTML & CSS alone makes up 35.8% of them. It makes up 2.7% of the questions in our Bank IT jobs papers, against 0.6% in BCS (ICT and CSE cadre). 3 of its MCQs came back in a second exam.
- Papers that ask it
- 79
- Years covered
- 2015–2026
- MCQ / written
- 53 / 67
- MCQs asked again
- 3
Most asked chapters · বেশি আসা অধ্যায়
Each chapter's share of the 120 past-exam questions
- HTML & CSS35.8%
- HTTP & Web Protocols24.2%
- APIs & Architecture15.8%
- JavaScript & Frontend5.0%
Share of each exam's questions · পরীক্ষাভিত্তিক অংশ
Web Technology questions in each exam's papers, and their share of that exam's questions
- Bank IT jobs of 2,388642.7%
- ICT teaching posts (NTRCA) of 30062.0%
- Government IT officer posts of 2,337391.7%
- BPSC non-cadre IT posts of 71681.1%
- BCS (ICT and CSE cadre) of 49230.6%
Asked in more than one exam · একাধিক পরীক্ষায় এসেছে
3 MCQs in Web Technology came back word for word in a second exam; the 2 most repeated technical ones below, each linked to the papers.
URL stands for-
Web Technology, asked in 2 exams:Sonali Bank Senior Officer Oct 2021Sonali Bank 2020
Which one is a modern lightweight message exchange format?
Web Technology, asked in 2 exams:PKB Assistant Programmer 2019Combined Bank Maintenance Engineer 2018
Counted from our own past papers: every past-exam MCQ and written question, each filed under one syllabus chapter. Practice questions and questions held for live tests are not counted; no answer is shown here.
Syllabus by chapter · অধ্যায়ভিত্তিক সিলেবাস
- HTML & CSS · 103 questions
- Hyperlinks, Complex HTML Table (rowspan/colspan), Types of CSS (Inline/Internal/External), The <script> Tag, The <button> Element, CSS and CSS frameworks
- JavaScript & Frontend · 30 questions
- Hoisting (var, let/const, functions)
- HTTP & Web Protocols · 108 questions
- HTTP Cookies, GET বনাম POST Method, Cookies, HTTP vs HTTPS, Apache HTTP Server, HTTP Session vs Cookies
- APIs & Architecture · 62 questions
- Application Programming Interface (API), MVC Framework, $.ajax() vs $.get() vs $.load(), SOAP Protocol, AJAX Methods Comparison, $.ajax() vs $.load() vs $.get()
- Mixed Topics · 62 questions
- Login Form with PHP & MySQL, Web Browser vs Search Engine, Hyperlinks (Hypertext Links), CORS (Cross-Origin Resource Sharing), Web Caching, Web Portal vs Web Hosting
Loading sample questions…
Start learning: HTML Fundamentals and Adding CSS to a Page · HTML-এর মৌলিক ধারণা এবং পৃষ্ঠায় CSS যোগ করা
HTML Fundamentals and Adding CSS to a Page
:::hook from=013-5
Answer: (d) <html>. Every HTML page is one big element called <html>, and everything else sits inside it. <head> and <body> are its two children, and <title> lives inside <head>, so (a), (b) and (c) are all parts of the page but none of them is the root. Part 2 draws the whole skeleton, and Part 3 explains what "element" means.
:::
Open the website that announces the exam you are preparing for. There is a heading at the top, a notice in two or three paragraphs, a list of important dates, a table of vacancies by department, a picture of the logo, and a link that says "Download the circular". It looks like a finished page, the way a printed notice looks finished.
Now press Ctrl+U, or right-click and choose "View page source". The same page turns into plain text: ordinary words, with small labels in angle brackets such as <h1> and </p> scattered between them. Nothing is coloured and nothing is drawn. The browser did all of that, by reading the labels and obeying them. If a piece of text is labelled as a heading, it draws a heading. If it is labelled as a list, you get a list. Those labels are HTML, and they are what this chapter is about.
Because the labels are rules, they can be asked about with great precision, and papers do exactly that. One-mark questions ask for a tag, an attribute, an old element, a version. Written questions ask you to produce markup: a page with an image and a link, a complex table, a short note on CSS and its types.
By the end you will be able to write a complete page from the first line to the last, with headings, lists, links, images and a table that uses rowspan and colspan. You will say what each tag and attribute does and which old ones to avoid, tell DOCTYPE from a tag, HTML from XHTML, and a tag from an element, add CSS and JavaScript to a page in the right way, and explain how inline, internal and external CSS differ.
We go in seven parts, from the ground floor up: what a page is made of and where HTML came from; the skeleton every page starts with; elements, attributes and special characters; text, lists and the old tags; links and images; tables up to the complicated kind; and finally how CSS and JavaScript enter a page.
:::why ids=013-5,013-7,130-2,131-3,123-30,090-26,119-12,cb260103-43,cb260103-58,wo00149,wo00215,wo00508,wo00666,wo00918,wo01104,wo01676,wo02189,wo02495
Exams ask this chapter in two ways. The MCQs test one fact each: the root tag, the tag for a list or a paragraph, which old attribute sets a background, how to open a link in a new tab, which tag holds JavaScript, what CSS stands for, which language is not a programming language. The written questions ask for a skill: HTML for an image and a link, a complex table, what an HTML element is, the minimum tags of a page and how to write a comment, CSS and its types, and what HTML and CSS alone can and cannot do. Each is taught below, with its reason.
:::
Part 1: What a web page is made of
A page is a text file with marks on it
Picture an editor with a red pencil, going through a manuscript before it goes to the printer. Beside one line she writes "chapter heading". Over one word she writes "bold". Between two sentences she writes "new paragraph". She doesn't change a single word; she only says what each piece is. Then the typesetter reads her marks and sets the page.
An HTML file and a browser stand in exactly this relationship: the file is the manuscript with the editor's marks, and the browser is the typesetter who reads the marks and draws the page.
HTML stands for HyperText Markup Language, and each of the three words does a job. Hypertext is text that links to other text: you click a word and land on another page, which is what makes the web a web. Markup is the editor's marks, labels written around pieces of text to say what they are. Language means there is a fixed vocabulary with fixed rules, so every browser reads the same label in the same way. That vocabulary is written down in a public standard, and you will meet its history in a moment.
A label in HTML is a tag, written in angle brackets. <h1> is an opening tag and </h1> the closing tag, with a slash; the text between them is the thing being labelled. So <h1>Admit card notice</h1> means "Admit card notice is a main heading". Notice what the markup does not say: how big or what colour. It says what the text is, and the browser decides, by default, that a main heading is large and bold.
:::figure caption="One file, two views: the labels in the file, and the page the browser draws from them" alt="Left panel shows three lines of HTML source: an h1 line, a p line with a bold word, and an a line with a link. An arrow labelled browser points to the right panel, which shows the same text drawn as a large heading, a paragraph with one bold word, and an underlined link." maxw=440
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 136" width="360" height="136"><text x="4" y="14" text-anchor="start" font-size="11.5" font-weight="700" class="f-mute">The file</text><path fill-rule="evenodd" class="f-line" d="M8 22h188a4 4 0 0 1 4 4v96a4 4 0 0 1 -4 4h-188a4 4 0 0 1 -4 -4v-96a4 4 0 0 1 4 -4Z M9.5 23.5h185.0a4 4 0 0 1 4 4v93.0a4 4 0 0 1 -4 4h-185.0a4 4 0 0 1 -4 -4v-93.0a4 4 0 0 1 4 -4Z"/><text x="14" y="52" text-anchor="start" font-size="11.5" class="f-ink f-mono"><h1>Admit card</h1></text><text x="14" y="82" text-anchor="start" font-size="11.5" class="f-ink f-mono"><p>Date: <b>12 Dec</b></p></text><text x="14" y="112" text-anchor="start" font-size="11.5" class="f-ink f-mono"><a href<tspan>=</tspan>"#">Rules</a></text><text x="225" y="64" text-anchor="middle" font-size="11.5" font-weight="700" class="f-host">browser</text><rect x="206" y="73.0" width="31" height="2" class="f-host"/><polygon class="f-host" points="244,74 236,69.5 236,78.5"/><text x="252" y="14" text-anchor="start" font-size="11.5" font-weight="700" class="f-mute">The page</text><path fill-rule="evenodd" class="f-line" d="M256 22h96a4 4 0 0 1 4 4v96a4 4 0 0 1 -4 4h-96a4 4 0 0 1 -4 -4v-96a4 4 0 0 1 4 -4Z M257.5 23.5h93.0a4 4 0 0 1 4 4v93.0a4 4 0 0 1 -4 4h-93.0a4 4 0 0 1 -4 -4v-93.0a4 4 0 0 1 4 -4Z"/><text x="262" y="52" text-anchor="start" font-size="15" font-weight="700" class="f-ink">Admit card</text><text x="262" y="82" text-anchor="start" font-size="12" class="f-ink">Date: </text><text x="297" y="82" text-anchor="start" font-size="12" font-weight="700" class="f-ink">12 Dec</text><text x="262" y="112" text-anchor="start" font-size="12" class="f-net">Rules</text><rect x="262" y="114.5" width="27" height="1" class="f-net"/></svg>
:::
The quickest way to feel this is to touch it. Below is a tiny page. Change the words, change h1 to h2, add a second <p> line, and watch the browser redraw.
:::widget name=html title="Your first labels" height=230
<h1>Admit card notice</h1>
<p>The admit card will be available from 12 December.</p>
<p>Please read the <a href="#rules">instructions</a> before you print it.</p>
:::
A web page is really built from three layers, and each layer has its own language. Think of a new building. The walls, rooms, doors and stairs are the structure. The paint, curtains and where the sofa goes are the look. The light switches and the lift are the behaviour. On the web the structure is HTML, the look is CSS, short for Cascading Style Sheets, and the behaviour is JavaScript. A site uses all three, yet when a one-mark question asks which language builds a website (the others: COBOL, Python, FORTRAN), the answer is HTML: it can stand alone, never be left out.
:::table caption="The three layers of a web page" wrap=1
| Layer | Language | Its job | A small example |
|---|---|---|---|
| Structure | HTML | what each piece of content is | <h1>Results</h1> |
| Look | CSS | colours, fonts, spacing, layout | h1 { color: navy; } |
| Behaviour | JavaScript | reacting to the visitor, changing the page | show a message when a button is clicked |
| ::: |
One trap belongs here. HTML is a markup language, not a programming language. A programming language can store a value in a variable, take a decision with if, repeat with a loop, and calculate. HTML can do none of these: it cannot even add 2 and 3. It only labels content. When a paper asks "which of these is not a programming language", HTML is the answer to look for.
In one line: HTML labels what each piece of a page is; CSS styles it; JavaScript makes it react; and HTML is a markup language, not a programming language.
What HTML and CSS alone can do, and what they cannot
A page made of HTML and CSS only is called a static page: the file on the server is exactly what every visitor receives, letter for letter. The server does no thinking; it hands the file over.
What can such a page do? It can show headings, paragraphs, lists, tables, pictures and links; it can set colours, fonts and layout, even rearrange itself for a phone; it can display the shape of a form with its boxes and buttons. What it cannot do is anything that needs a decision or a memory. It cannot save what a visitor types, check a password, read or write a database, add up a total, or show different content to different visitors. Those need a program on the server, or JavaScript in the browser.
Static pages suit a college's "about us" page, a notice board, a menu or a portfolio, which read the same for everyone. A shop cart, or a result page that looks up your roll number, needs JavaScript and a server program with a database.
:::reveal label="Show a model answer"
A district office wants to build its website with only HTML and CSS. Write two things it can offer and two things it cannot, and say what the missing things need.
Can offer: pages of notices, office hours and addresses, with headings, lists and tables, a photo, links, and a layout that also fits a phone. Cannot offer: a complaint form whose entries are saved (a server program and a database) or an officers' login (a server program that checks the password). A search box that filters notices as you type needs JavaScript. An HTML and CSS only site is static: its content changes only when someone edits the files.
:::
In one line: HTML and CSS alone make a static page that looks the same for everyone; saving, logging in, calculating and reacting need JavaScript or a server program.
HTML through the years
Where did these labels come from? Tim Berners-Lee built the first web at CERN around 1990, and the labels were his way of letting physicists share documents with links.
The first formal standard, HTML 2.0, appeared as RFC 1866 in November 1995, written by Tim Berners-Lee and Dan Connolly. After that the W3C (the World Wide Web Consortium, which the Internet chapter covers) took over: HTML 3.2 became a W3C Recommendation on 14 January 1997 and HTML 4.01 on 24 December 1999. In 1998 the W3C decided to stop evolving HTML and to build an XML-based version instead, and that gave XHTML 1.0 (26 January 2000): no new features, just HTML 4 rewritten under the strict rules of XML.
Browser makers disagreed. At a 2004 workshop Mozilla and Opera proposed to keep evolving HTML itself and were turned down, so Apple, Mozilla and Opera founded the WHATWG to carry on. Its work became HTML5, which the W3C published as a Recommendation on 28 October 2014, while the WHATWG kept one ever-edited, never-renumbered document, the Living Standard. In 2019 the two bodies agreed to maintain a single specification, the WHATWG one; when this lesson was written, on 16 November 2026, its page said "Living Standard, last updated 16 November 2026".
:::table caption="HTML through the years" wrap=1
| Version | Date | What to remember |
|---|---|---|
| HTML 2.0 | Nov 1995 (RFC 1866) | the first formal standard; an application of SGML, an older markup standard |
| HTML 3.2 | 14 Jan 1997 | W3C Recommendation; added widely used features such as tables, applets and text flowing around images |
| HTML 4.01 | 24 Dec 1999 | W3C Recommendation; style sheets, scripting, better printing and accessibility |
| XHTML 1.0 | 26 Jan 2000 | HTML 4 rewritten as XML: stricter rules |
| HTML5 | 28 Oct 2014 | W3C Recommendation, born from the WHATWG work |
| HTML Living Standard | continuous | WHATWG; no version number; the one standard now |
| ::: |
So what is "the newest version of HTML"? An exam that offers HTML5 wants HTML5, the name everyone still uses. The fuller answer is that today's HTML is the Living Standard, which began as HTML5 and keeps improving without being renumbered.
HTML5 is often compared with HTML 4.01, and exams like the comparison; the new tags, forms and media each have their own chapter, so here you only need to recognise them.
:::table caption="HTML 4.01 and HTML5 side by side" wrap=1
| Point | HTML 4.01 | HTML5 |
|---|---|---|
| Document type line | long DOCTYPE with a public identifier and a DTD address | <!DOCTYPE html> |
| Character set | <meta http-equiv="Content-Type" content="text/html; charset=..."> |
<meta charset="UTF-8"> |
| Structure tags | <div> and <span> for everything |
adds <header>, <nav>, <main>, <article>, <section>, <footer> |
| Audio, video, graphics | plug-ins such as Flash | <audio>, <video>, <canvas>, inline SVG |
| Form inputs | text, password, checkbox, radio, file and a few more | adds email, url, date, number, range, color and others |
| Storage and APIs | cookies, with no web-storage API | web storage, drag and drop, web workers (and geolocation, in its own specification) |
| Bad markup | each browser guessed in its own way | one written recipe that all browsers follow |
| ::: |
In one line: HTML was first standardised in 1995, W3C versions ran to HTML 4.01 and XHTML 1.0, HTML5 (2014) came from the WHATWG, and today the standard is the WHATWG Living Standard.
HTML and XHTML
XHTML is HTML written under the rules of XML, the strict general-purpose markup language you will meet again in the data-formats chapter. Every rule below is one that ordinary HTML does not enforce.
In XHTML every name is lowercase, every non-empty element has an end tag, empty elements are closed too (<br />), every attribute value is quoted, no attribute is shortened to a bare name (checked="checked"), and there is one root <html> with the XHTML namespace written in it (a namespace is a name saying which vocabulary the tags belong to). Above all the document must be well-formed: a single mistake and the page is rejected.
Ordinary HTML is forgiving: <BR>, <br> and <br /> all work, and a missing </li> or </p> is quietly repaired. That forgiveness is why most of the web has always been written as HTML.
What decides which rules apply? In today's browsers it is the MIME type, the label the server sends with the file to say what it is, not the look of the file. A document delivered as text/html is parsed by the forgiving HTML parser (the browser's reader of the file), even if it was written in XHTML style. A document delivered as application/xhtml+xml is parsed by the XML parser. The same markup behaves differently, and the proof is easy to run. Here is a small file whose <br> is not closed:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>X</title></head>
<body><p>one<br>two</p></body></html>
Saved with the extension .html, Chrome showed the page without complaint. Saved with the extension .xhtml, the identical text made Chrome stop and print "This page contains the following errors: error on line 4 at column 24: Opening and ending tag mismatch: br line 4 and p". When the <br> was changed to <br/>, the .xhtml page loaded, and Chrome reported its content type as application/xhtml+xml.
Today HTML5 can be written in either syntax, the HTML syntax or an XML syntax (sometimes called XHTML5). They describe the same elements; only the parser differs.
:::table caption="HTML and XHTML under the usual exam heads" wrap=1
| Point | HTML | XHTML |
|---|---|---|
| Built on | its own parsing rules (older versions on SGML) | XML |
| Tag and attribute names | any case | lowercase only |
| End tags | some may be left out | required on every non-empty element |
| Empty elements | <br> |
<br /> or <br></br> |
| Attribute values | quotes optional (unless special characters) | always quoted |
| Short attributes | checked |
checked="checked" |
| Error in the markup | repaired quietly, the page still shows | the page is rejected with an error |
| MIME type | text/html |
application/xhtml+xml |
| ::: |
In one line: HTML forgives errors and is chosen by the text/html MIME type; XHTML is HTML under strict XML rules, and one mistake stops the page.
:::check id=w1-p1
A visitor says your page "shows nothing but an error" after you changed one tag. The file is served as application/xhtml+xml. The same markup, served as text/html, would most probably:
- also stop with an error
- be repaired by the browser and shown
- be treated as plain text
- be treated as a JavaScript file
With text/html the forgiving HTML parser runs, so a missing end tag or an unclosed <br> is repaired and the page shows (the unclosed <br> run above did exactly this). With application/xhtml+xml the XML parser runs and one mistake stops the page. The MIME type, not the file's style, chooses the parser.
:::
Read the whole lesson free with an account · পুরো পাঠ পড়তে বিনামূল্যে সাইন আপ করুন
All 13 lessons · সব পাঠ
- HTML Fundamentals and Adding CSS to a Page · HTML-এর মৌলিক ধারণা এবং পৃষ্ঠায় CSS যোগ করা
- CSS in Practice: Selectors, the Cascade, the Box Model, Layout and Responsive Design · CSS হাতে-কলমে: selector, cascade, box model, layout আর responsive design
- JavaScript Basics · জাভাস্ক্রিপ্ট বেসিকস
- Client-Server Architecture and HTTP · ক্লায়েন্ট-সার্ভার আর্কিটেকচার এবং HTTP
- State on the Web: Cookies, Sessions, Web Storage and Tokens · ওয়েবে state ধরে রাখা: Cookie, Session, Web Storage ও Token
- Web Security: HTTPS in Practice, XSS, CSRF, CORS and Secure Coding · ওয়েব নিরাপত্তা: বাস্তবে HTTPS, XSS, CSRF, CORS এবং নিরাপদ কোডিং
- APIs, REST, SOAP and AJAX · API, REST, SOAP ও AJAX
- MVC, Web Frameworks, Architecture and Web Caching · MVC, ওয়েব ফ্রেমওয়ার্ক, আর্কিটেকচার ও ওয়েব ক্যাশিং
- HTML Forms, Semantics, Accessibility and Media · HTML ফর্ম, সিমান্টিক ট্যাগ, অ্যাক্সেসিবিলিটি ও মিডিয়া
- Browsers, Rendering, the DOM and the Shape of a Website · ব্রাউজার, রেন্ডারিং, DOM আর ওয়েবসাইটের গড়ন
- Server Side: PHP, Web Servers, Application Servers and Hosting · সার্ভার সাইড: PHP, ওয়েব সার্ভার, অ্যাপ্লিকেশন সার্ভার ও হোস্টিং
- XML, JSON and Data Interchange · XML, JSON এবং ডেটা আদান-প্রদান
- Revision sheet: Web Technologies · রিভিশন শিট: ওয়েব টেকনোলজি