Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Internet and Web Technology important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. CSS: need, syntax, types of style sheets and advantages
Asked 21 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Explain CSS and its advantages.” (2020, 2022, 2023, 2026)
“Discuss CSS syntax, selectors and CSS3.” (2026)
“Explain the cascading nature of CSS and its importance in web page design.” (2026)
The short answer
CSS (Cascading Style Sheets) is the language that sets how HTML elements look: colour, font, spacing and layout. HTML holds the content while CSS holds the style.
Write these points
Need for CSS: without it, every tag carries its own font and colour. A small change then means editing every page. One CSS file can style the whole site.
Syntax: a rule has a selector and a declaration block. In h1 { color: navy; font-size: 24px; } the selector is h1, color is a property and navy is its value.
Selectors: element (p), class (.note, for many tags), id (#top, once on a page) and group (h1, h2).
Inline CSS goes in the style attribute of one tag. Internal (embedded) CSS goes in a <style> block inside <head> and styles one page. External CSS sits in a .css file that many pages join with <link>.
The cascade decides which rule wins when two rules clash. Inline style beats the other two. Between an internal and an external sheet, the rule the browser reads last wins. A more specific selector (id over class over element) also wins.
Advantages: one file changes the whole site. The browser caches it, so pages load faster. HTML stays clean. Limits: a few properties look different in different browsers.
A college site with 200 pages changes its theme colour from blue to maroon. With one external CSS file, the web team edits one line instead of 200 pages.
Inline, internal and external CSS (usual priority when <link> comes before <style>)
Same or opposite: inline and external CSS
Point
Inline
External
Same or opposite
Written in
style attribute of a tag
Separate .css file
Opposite
Reuse across pages
No
Yes
Opposite
Priority
Highest
Lower than inline
Opposite
Styles HTML elements
Yes
Yes
Same
Exam tip. Give one short example of each of the three types. Name the three parts of a rule: selector, property and value.
Asked 20 times in 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“Discuss sitemap, Navigation and user-centric design.” (2026)
“Discuss website publishing and common web design issues.” (2026)
“Discuss the concepts of website usability and effective navigation.” (2026)
The short answer
Effective web design makes a site easy to read, quick to load and easy to move around for the people who use it. Web design issues are the limits a designer must plan for, such as browsers, bandwidth, cache and screen size.
Write these points
Browser: Chrome, Firefox, Safari and Edge can show the same HTML and CSS a little differently. Write standard code and test the site in several browsers.
Bandwidth: on a slow connection a heavy page takes long to open. Compress images, keep pages small and load big videos only when the user asks.
Cache: the browser keeps copies of files it has loaded. Keep shared CSS and JavaScript in separate files so they load once.
Display resolution: screens run from small phones to wide monitors. Use a responsive layout with percentages and media queries in place of fixed pixel widths.
Look, layout and linking: keep the same colours, fonts and logo on every page. Put the most useful content at the top. Write link text that says where the link goes.
User centric design and navigation: start from what the real user needs and test with real users. Keep the menu in the same place on every page. Add search, breadcrumbs and a sitemap so any page is two or three clicks away.
Page speed in numbers.
A home page weighs 3 MB. On a 10 Mbps 4G link it loads in 3 × 8 / 10 = 2.4 s.
On a 2G link of 100 kbps the same page takes 240 s, so most visitors leave.
Compress the images to WebP: the page falls to 800 KB and loads in 0.64 s on 4G.
Add Cache-Control: max-age=86400, so a visitor who returns within a day downloads only the HTML.
Real-life example
Most students open a college site on a phone. If the result link is buried three menus deep or the page takes ten seconds to load, they leave. Good design puts the result link on top and loads fast.
Six web design issues a designer plans for
Same or opposite: good and poor web design
Point
Good design
Poor design
Same or opposite
Navigation
Clear menu, few clicks
Hidden, deep links
Opposite
Load time
Fast
Slow
Opposite
Works on mobile
Yes, responsive
No
Opposite
Is a website for users
Yes
Yes
Same
Exam tip. Traditional design starts from what the company wants. User centric design starts from user research and keeps testing with users. Draw the diagram, name each issue and give one fix for it.
Q3. Database operations in PHP: create, list, insert, update, delete
Asked 16 times in 2022, 2023, 2024, 2025, 2026 · Unit 5
From the papers
“Discuss database creation, table management and phpMyAdmin.” (2026)
“Explain how to execute SQL queries in PHP to retrieve, insert, update and delete data from a MySQL database.” (2025)
“Explain PHP-MySQL connectivity and database operations.” (2025)
The short answer
After the connection is made, PHP sends SQL to MySQL with mysqli_query(). The same function creates databases and tables, then lists, inserts, reads, updates and deletes data.
Write these points
mysqli_query($conn, $sql) returns true or false for CREATE, INSERT, UPDATE and DELETE. For SELECT and SHOW it returns a result set.
Read a result set row by row with mysqli_fetch_assoc() (columns by name) or mysqli_fetch_row() (columns by number).
mysqli_num_rows($r) gives the number of rows found. mysqli_affected_rows($conn) gives the number of rows changed.
Database bugs and errors: check every query. if (!$r) { echo mysqli_error($conn); } shows what went wrong. Common bugs are a wrong table name, a missing quote around a string and a missing WHERE.
For data typed by a user, use a prepared statement (mysqli_prepare with bind_param). It stops SQL injection.
Task
SQL sent with mysqli_query()
Create database
CREATE DATABASE college
Select database
mysqli_select_db($conn, "college")
List databases / tables
SHOW DATABASES / SHOW TABLES
Create table
CREATE TABLE student (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50), marks INT)
Insert
INSERT INTO student (name, marks) VALUES ('Ravi', 78)
Update
UPDATE student SET marks = 85 WHERE id = 1
Delete row / table / database
DELETE FROM student WHERE id = 1 / DROP TABLE student / DROP DATABASE college
When you register on a college portal, PHP runs an INSERT. Editing your profile runs an UPDATE. The admin page that lists all students runs a SELECT and loops over the rows.
Figure: one database operation in PHP
Same or opposite: mysqli_query() and prepared statements
Point
mysqli_query() with plain SQL
Prepared statement
Same or opposite
SQL injection risk
High if input is joined into SQL
Low
Opposite
Speed for repeated queries
Normal
Faster
Opposite
Sends SQL to MySQL
Yes
Yes
Same
Code length
Shorter
Slightly longer
Opposite
Exam tip. UPDATE or DELETE without WHERE changes every row in the table. Always write the WHERE part. Show the loop with mysqli_fetch_assoc(). Listing data without a loop prints only one row. phpMyAdmin is a web tool for the same jobs (create, browse, import, export) without writing PHP.
Asked 16 times in 2022, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“Explain PHP fundamentals.” (2026)
“Discuss arrays, functions and object-oriented PHP.” (2026)
“Explain the basic syntax and execution of PHP scripts.” (2026)
The short answer
PHP (PHP: Hypertext Preprocessor) is a server side scripting language. The web server runs the code between <?php and ?> and sends only the HTML output to the browser.
Write these points
Syntax: each statement ends with a semicolon. echo prints output. Comments use //, # or /* */. A .php file can mix HTML and PHP.
Variables start with $, as in $name = "Ravi";. The name starts with a letter or underscore and is case sensitive. PHP sets the type (integer, float, string, boolean, array, object, NULL) from the value.
Functions: function add($a, $b) { return $a + $b; }. Built in ones include strlen(), strtoupper() and date().
<?php
$marks = ["Math" => 80, "DBMS" => 35];
foreach ($marks as $sub => $m) {
if ($m >= 40) echo "$sub: Pass<br>";
else echo "$sub: Fail<br>";
}
echo strlen("This is my first program"); // 24
?>
What it prints.
The loop prints Math: Pass and DBMS: Fail, because 35 is below 40.
strlen() then prints 24, the number of characters in the sentence.
Real-life example
WordPress, which runs a large share of websites, is written in PHP. Each blog page you open is built by PHP code on the server before it reaches your browser.
The server runs PHP. The browser gets plain HTML
Same or opposite: indexed and associative array
Point
Indexed
Associative
Same or opposite
Keys
Numbers 0, 1, 2
Names like "roll"
Opposite
Example
$a = array(10, 20)
$s = array("roll" => 7)
Opposite
Loop with foreach
Yes
Yes
Same
Good for
Lists
Records
Opposite
Exam tip. == compares values only. === compares value and type, so 5 == "5" is true but 5 === "5" is false. Write the output next to your program as a comment.
Q5. Document Object Model (DOM) and DOM manipulation
Asked 15 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Explain in detail DOM event handling. Also explain with an example of creating a context menu.” (2020, 2022)
“Discuss DOM, events and DHTML.” (2026)
“Discuss DOM manipulation and Dynamic HTML applications.” (2026)
The short answer
The DOM (Document Object Model) is a tree of objects that the browser builds from an HTML page. JavaScript reads and changes the page through this tree.
Write these points
Every tag becomes an element node and the text inside becomes a text node. The document object sits at the root.
Find elements: document.getElementById("msg"), getElementsByTagName("p"), getElementsByClassName("note") or querySelector("#msg").
Change content with el.innerHTML or el.textContent. Change an attribute with el.setAttribute("src", "b.png").
Change style: el.style.color = "red"; el.style.fontSize = "24px"; el.style.left = "50px" (the element needs position set).
Add and remove: document.createElement("li"), parent.appendChild(li) and parent.removeChild(li).
Events: el.addEventListener("click", show) runs show() when the user clicks.
Browser environment: window is the top object. It holds document, location, history, navigator and screen. These are host objects given by the browser.
Example.
<p id="msg">Hello</p> <button onclick="change()">Change</button> <script> function change() { var p = document.getElementById("msg"); p.innerHTML = "Hi"; p.style.color = "red"; p.style.fontSize = "24px"; } </script>
Real-life example
When you click 'Add to cart' and the cart count changes from 2 to 3 without reloading, JavaScript has changed one node of the DOM tree. The rest of the page stays as it was, because the DOM lets a script change one branch without rebuilding the whole tree.
Each tag is a node. JavaScript reaches a node and changes it
Same or opposite: getElementById() and querySelectorAll()
Point
getElementById()
querySelectorAll()
Same or opposite
Returns
One element
A list of elements
Opposite
Selector
Only an id
Any CSS selector
Opposite
Part of the DOM API
Yes
Yes
Same
Example
getElementById("total")
querySelectorAll(".item")
Opposite
Exam tip. Draw the DOM tree for a small page and mark the element nodes and text nodes. The DOM is a W3C standard. It works the same way with HTML and XML.
Q6. XML: structure, main components, uses and XML vs HTML
Asked 15 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“What is XML? What are the attributes of XML?” (2020, 2022, 2023)
“Explain XML and its applications.” (2026)
“Explain XML as a platform-independent data representation language.” (2026)
The short answer
XML (eXtensible Markup Language) is a markup language for storing and carrying data, where the writer makes up the tag names. So XML describes what the data is, while HTML describes how a page looks.
Write these points
Main components: the prolog (<?xml version="1.0" encoding="UTF-8"?>), one root element, child elements, attributes (id="b1"), text, comments (<!-- -->), CDATA sections and entity references such as < and &.
Well formed rules: one root, every start tag closed, proper nesting, case sensitive names and quoted attribute values. A name starts with a letter or underscore and has no spaces.
Uses: data exchange between different systems, configuration files, RSS feeds, web services (SOAP) and office files such as DOCX.
Advantages: plain text that any platform reads, self describing, kept apart from display. It can be checked with a schema and turned into HTML with XSLT.
The tags student, name and marks were made up by the writer. They say what each value means.
<b><i>text</b></i> is shown by a browser as HTML, but an XML parser rejects it because the tags are not nested properly.
A program can read marks = 82 straight from the XML, which it cannot do safely from an HTML table.
Real-life example
Bank statements, RSS news feeds and Android layout files are all written in XML. Programs can read the data because every value sits inside a named tag.
Parts of a small XML document
Same or opposite: XML and HTML
Point
XML
HTML
Same or opposite
Purpose
Carry and store data
Show data
Opposite
Tags
Made by the writer
Fixed set
Opposite
Errors
Not allowed, must be well formed
Browser forgives
Opposite
Markup language
Yes
Yes
Same
Exam tip. Write a five line XML example in any XML answer. Label the root, an attribute and a child element. Valid XML is well formed XML that also follows a DTD or an XML Schema. Define both words.
Asked 14 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 5
From the papers
“Write the connectivity string in PHP with MySQL database.” (2020, 2023)
“Explain PHP-MySQL connectivity.” (2026)
“Explain the use of MySQL in dynamic web applications.” (2026)
The short answer
PHP talks to a MySQL database through the mysqli extension (or PDO). The script connects to the server, picks a database, sends SQL, reads the result and then closes the connection.
Write these points
Role of MySQL: it is a free relational database that stores the site's data, such as users, orders and posts. PHP builds pages from that data.
PHP, MySQL and Apache together run most small dynamic sites. XAMPP and WAMP install all three on a laptop.
The old mysql_connect() functions were removed in PHP 7. Use mysqli or PDO.
Object style: $conn = new mysqli("localhost", "root", "", "college"); then check $conn->connect_error.
PDO style: $pdo = new PDO("mysql:host=localhost;dbname=college", "root", ""); PDO works with many databases.
Steps
Connect: $conn = mysqli_connect("localhost", "root", "password", "college"); The four values are host, user, password and database.
Check: if (!$conn) { die("Connection failed: " . mysqli_connect_error()); }
Select a database if it was not given above: mysqli_select_db($conn, "college");
Run a query: $result = mysqli_query($conn, "SELECT * FROM student");
Read rows: while ($row = mysqli_fetch_assoc($result)) { echo $row["name"]; }
$r = mysqli_query($con, "SELECT name FROM student WHERE marks > 60");
while ($row = mysqli_fetch_assoc($r)) echo $row["name"]; then mysqli_close($con);
With rows (Asha, 72), (Ravi, 55), (Meena, 81) the page prints Asha and Meena. mysqli_num_rows($r) gives 2.
Real-life example
An exam result site keeps marks in MySQL. When a student enters a roll number, PHP connects to the database, fetches that row and prints the marksheet.
The five steps of a PHP and MySQL script
Same or opposite: mysqli and PDO
Point
mysqli
PDO
Same or opposite
Databases
MySQL only
12 kinds
Opposite
Style
Procedural and object
Object only
Opposite
Prepared statements
Yes
Yes
Same
Named parameters
No
Yes
Opposite
Exam tip. The connectivity string is the mysqli_connect() line with its four values. Write it exactly. Write the failure check with die() right after the connect line.
Asked 13 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“What is HTTP? Explain its utility and the various methods used by HTTP.” (2020, 2022, 2023)
“Explain the relationship between the WWW and HTTP.” (2026)
“Explain the role of HTTP request and response messages.” (2026)
The short answer
HTTP is the protocol a browser and a web server use to exchange pages: a request goes out and a response comes back over TCP port 80. HTTPS adds TLS encryption on port 443.
Write these points
Request: a request line (method, URL, version) and headers (Host, User-Agent, Cookie). A blank line follows, then an optional body such as POST form data.
Response: a status line (version, code, phrase) and headers (Content-Type, Set-Cookie). A blank line follows, then the body, such as the HTML page.
Status codes: 1xx information, 2xx success (200 OK), 3xx redirect (301 Moved Permanently), 4xx client error (404 Not Found) and 5xx server error (500 Internal Server Error).
HTTP is stateless. The server does not remember earlier requests, so sites add cookies and sessions to remember a user.
Utility: it carries any kind of data (HTML, images, JSON) as simple text. The WWW is the set of linked pages. HTTP is the protocol that moves them.
A WebSocket starts as an HTTP request, then upgrades to one open two way connection. The server can then push data without being asked.
Method
What it does
GET
Asks for a resource. Data goes in the URL, so it is seen and can be bookmarked
POST
Sends data in the body, such as a form or a file
PUT / PATCH
Replaces a resource / changes part of it
DELETE
Removes a resource
HEAD
Same as GET but returns headers only
One request and its response.
Request: GET /index.html HTTP/1.1 with the header Host: www.example.com.
Response: HTTP/1.1 200 OK, Content-Type: text/html, Content-Length: 1256, then the page itself.
A missing page gives 404 Not Found. A login form sent with POST carries its data in the body, not in the URL.
Status families: 2xx success, 3xx redirect, 4xx client error, 5xx server error.
Real-life example
Typing a URL sends a GET request. Pressing 'Pay' on a payment form sends a POST request. The server answers 200 OK if all is well or 404 if the page is not found.
One HTTP request and its response
Same or opposite: GET and POST
Point
GET
POST
Same or opposite
Data sent in
URL
Request body
Opposite
Bookmarked or cached
Yes
No
Opposite
Good for
Reading data
Sending forms, passwords
Opposite
HTTP method
Yes
Yes
Same
Exam tip. Draw the request and the response and label their parts. Write at least four methods and four status codes.
Q9. HTML forms and form fields (radio buttons, check boxes)
Asked 12 times in 2020, 2022, 2023, 2024, 2025 · Unit 2
From the papers
“What are FORMS? Explain different FORM fields.” (2020, 2022, 2023)
“Write an HTML document to provide a form that collect name and phone numbers.” (2020, 2022)
“Explain HTML structure, forms, tables and meta tags.” (2025)
The short answer
An HTML form collects input from the user and sends it to a program on the server. The <form> tag names that program in its action attribute, while its method attribute says GET or POST.
Write these points
Text fields: <input type="text">, "password" (hides the letters), "email", "number", "date" and "tel". The last four came with HTML5. A "hidden" field sends data the user does not see.
Radio buttons: type="radio". Buttons with the same name form one group and only one of them can be selected.
Check boxes: type="checkbox". Each box is on or off by itself, so the user can tick many.
<select> with <option> tags makes a drop down list. <textarea rows="4" cols="30"> takes long text.
Buttons: type="submit" sends the form. type="reset" clears it. <label for="id"> joins text to a field.
Useful attributes: name (the key sent to the server), value, placeholder, required and maxlength.
In JavaScript, radio and check box objects have a checked property (true or false) and a value property. They also have a click() method. Example: document.f1.gender[0].checked.
Filled with Asha, 9876543210, Female and Music, the browser posts name=Asha, phone=9876543210, g=F and hobby[]=music to save.php.
A phone of 9 digits fails the pattern, so the browser refuses to send the form.
Only one radio button of group g can be on, while several check boxes can be ticked.
Real-life example
An admission form asks for gender with radio buttons, because only one can be chosen. It asks for hobbies with check boxes, because many can be ticked.
Figure: how a form reaches the server
Same or opposite: radio button and check box
Point
Radio button
Check box
Same or opposite
Choices allowed
One per group
Any number
Opposite
Grouped by
Same name
Each independent
Opposite
Example
Gender
Hobbies
Opposite
Is an input type in a form
Yes
Yes
Same
Exam tip. A field without a name attribute is never sent to the server. Give all radio buttons of one question the same name, or the user can select them all.
Asked 11 times in 2020, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“Discuss DTD, XSL and XSLT.” (2026)
“Explain XML components, DTD and XML schemas.” (2025)
“What is a DTD (Document Type Definition)? What are its applications?” (2024)
The short answer
A DTD (Document Type Definition) lists the elements and attributes an XML document may have, with their order. An XML Schema (XSD) does the same job in XML syntax and adds data types.
Write these points
Why use a DTD: it checks that an XML file is valid, so two programs agree on one format before they exchange data.
Components: <!ELEMENT> declares an element and its content. <!ATTLIST> declares attributes. <!ENTITY> declares a shortcut. #PCDATA means text.
Symbols in a content list: + one or more, * zero or more, ? optional, a comma for order and | for a choice.
Attribute types are CDATA, ID, IDREF or a list of values. Defaults are #REQUIRED, #IMPLIED or #FIXED.
Internal DTD: written inside the XML file in <!DOCTYPE note [ ... ]>. External DTD: kept in a .dtd file and called with <!DOCTYPE note SYSTEM "note.dtd">. One file can use both.
Schema data types: xs:string, xs:integer, xs:decimal, xs:date and xs:boolean. simpleType adds limits (minInclusive). complexType describes an element with children.
Point
DTD
XML Schema
Syntax
Its own syntax
Written in XML
Data types
Text only (#PCDATA)
Many types: integer, date, boolean
Namespaces
Not supported
Supported
Example
<!ELEMENT age (#PCDATA)>
<xs:element name="age" type="xs:integer"/>
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to, from, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<!ATTLIST note id CDATA #REQUIRED>
]>
<note id="n1"><to>Ravi</to><from>Asha</from><body>Exam on Monday</body></note>
What the DTD checks.
The note element must hold to, from and body in that order, with an id attribute.
A note without from, or without id, is not valid against this DTD even though it is well formed.
Real-life example
When two banks exchange XML files, both agree on a schema first. A file that misses the account number field fails the check before any money moves.
Figure: well formed and valid XML
Same or opposite: DTD and XML Schema
Point
DTD
XML Schema
Same or opposite
Written in
Its own syntax
XML
Opposite
Data types
Text only
int, date, decimal and more
Opposite
Namespaces
Not supported
Supported
Opposite
Defines valid structure
Yes
Yes
Same
Exam tip. Show an internal DTD as in the example. Add one DOCTYPE line for an external one. If asked why Schema is better than DTD, write data types and namespaces first.
Asked 10 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“Explain web browser and web server architecture.” (2026)
“Explain WWW architecture, HTTP request-response cycle and role of web servers.” (2025)
“Describe Web browser, Web servers and Features of Web 2.0.” (2025)
The short answer
A web browser is client software that asks for web pages and shows them. A web server is software on a host computer that stores websites and answers browser requests over HTTP.
Write these points
Browser jobs: take the URL and find the server's IP address through DNS. Send the HTTP request and read the response. Show the HTML with its CSS and run the JavaScript. Keep the cache, cookies and history.
Browser architecture: user interface (address bar, buttons), browser engine, rendering engine (Blink, Gecko, WebKit), networking, JavaScript engine (V8), UI backend and data storage. The browser engine links the interface to the rendering engine.
The rendering engine turns HTML into the DOM tree and CSS into style rules. It joins them into a render tree, works out the layout and paints the page.
Server jobs: listen on port 80 or 443. Find the file or run a script such as PHP. Send the response with a status code. Log each request and serve many users at once.
Features used to compare web servers: speed under load and the operating systems supported. Also scripting support (PHP, ASP.NET, Java), security (HTTPS), virtual hosting of many sites, logging and cost.
Examples: browsers are Chrome, Firefox, Safari and Edge. Servers are Apache, Nginx, Microsoft IIS and Apache Tomcat (for Java).
What happens when you type a web address.
The browser asks DNS for the IP address of www.example.com.
It opens a TCP connection to port 443 and sends GET / over TLS.
The web server (Apache or Nginx) finds index.html and replies 200 OK with the page.
The browser reads the HTML, finds 1 CSS file and 3 images, makes 4 more requests, then draws the page.
Real-life example
When you open paperwala.org in Chrome, Chrome is the browser. The program that sends back the page from our server is the web server, such as Nginx or Apache.
How a browser and a web server work together
Same or opposite: web browser and web server
Point
Web browser
Web server
Same or opposite
Role
Client
Server
Opposite
Runs on
User's device
Host computer
Opposite
Examples
Chrome, Firefox
Apache, Nginx
Opposite
Speaks HTTP
Yes
Yes
Same
Exam tip. For the interaction question, draw the seven step diagram and explain each step in one line. The browser always starts the conversation. The server only answers.
Asked 10 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 2
From the papers
“Discuss the difference between HTML and XHTML with respect to elements.” (2020, 2022, 2023)
“Discuss XHTML and browser architecture.” (2026)
“Write a note on the meta tag and XHTML. Explain it with suitable code.” (2025)
The short answer
XHTML is HTML written with the strict rules of XML. A browser fixes many HTML mistakes by itself, while XHTML must be well formed or an XML parser rejects it.
Write these points
Every XHTML page needs a DOCTYPE and an <html> tag with xmlns="http://www.w3.org/1999/xhtml". Inside it go <head> with <title>, then <body>.
Why XHTML: the code is cleaner, XML tools can read it and it shows the same on more devices.
Meta tags (asked with XHTML) sit in <head> and give data about the page. <meta charset="UTF-8" /> sets the text encoding. <meta name="description" content="..." /> gives a summary for search engines.
Attribute values must be in quotes in XHTML: width="50".
Nesting must be correct in XHTML: <b><i>x</i></b>, never <b><i>x</b></i>.
Real-life example
Old websites with sloppy HTML still show, because the browser guesses. XHTML pages had to be written cleanly, like XML, so that phones of that time could read them with simple parsers.
Figure: XHTML rules
Same or opposite: HTML and XHTML
Point
HTML
XHTML
Same or opposite
Tag names
Any case
Lower case
Opposite
Closing tags
Some optional
Always needed
Opposite
Empty tags
<br>
<br />
Opposite
Used to build web pages
Yes
Yes
Same
Exam tip. Write a table of six or more differences and add the one line example. Write tags in lowercase in every exam answer. It is correct in both HTML and XHTML.
Q13. Client side and server side scripting, JavaScript basics
Asked 10 times in 2022, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Explain JavaScript control structures and functions.” (2025, 2026)
“What is client-side scripting and how does it differ from server-side scripting?” (2023, 2024)
“Explain Java Script as a client-side scripting language.” (2026)
The short answer
A client side script (JavaScript) runs in the browser of the user. A server side script (PHP, JSP, ASP.NET) runs on the web server and sends back plain HTML.
Write these points
JavaScript is built into every browser, so the page reacts at once with no trip to the server.
Variables use var, let or const. An identifier starts with a letter, _ or $. It is case sensitive and cannot be a reserved word such as if.
Conditions: if, else if, switch and ? :. Loops: for, while, do...while and for...of.
Functions: function add(a, b) { return a + b; }. Pop up boxes: alert() shows a message, confirm() asks OK or Cancel and prompt() asks for text.
Built in objects: Date, String, Array and Math. Math methods include Math.round(), Math.max(), Math.sqrt(), Math.floor() and Math.random().
Point
Client side
Server side
Runs on
Browser
Web server
User can see code
Yes (View Source)
No
Database access
No direct access
Yes
Used for
Form checks, effects, DOM changes
Login, database work, building pages
<script>
var a = 12, b = 4;
alert("Sum = " + (a + b) + " Product = " + (a * b));
function cmToInch(cm) { return cm / 2.54; }
function inchToCm(inch) { return inch * 2.54; }
</script>
What it does.
With a = 12 and b = 4 the alert shows Sum = 16 Product = 48.
cmToInch(254) returns 100 and inchToCm(10) returns 25.4.
Real-life example
A registration form shows 'Password too short' at once as you type. That is JavaScript in the browser. Saving your account in the database after you submit is PHP on the server.
Client side code runs in the browser. Server side code runs on the server
Same or opposite: client side and server side scripting
Point
Client side
Server side
Same or opposite
Runs on
Browser
Web server
Opposite
Language
JavaScript
PHP, Python, Node.js
Opposite
Can reach the database
No
Yes
Opposite
Makes pages dynamic
Yes
Yes
Same
Exam tip. Write the table first, then the JavaScript points. Use 1 inch = 2.54 cm for the height conversion program.
Asked 10 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Describe data binding in DHTML.” (2020, 2023)
“Explain in detail DOM event handling. Also explain with an example of creating a context menu.” (2020, 2022)
“Discuss DOM, events and DHTML.” (2026)
The short answer
DHTML (Dynamic HTML) is the use of HTML, CSS, JavaScript and the DOM together so a page can change after it loads, without asking the server again. It has no tags of its own.
Write these points
HTML gives the content and CSS gives the look. JavaScript gives the logic. The DOM lets JavaScript reach every element.
A static HTML page stays the same until it is reloaded. A DHTML page reacts at once, with drop down menus, hide and show, moving items and a live clock.
An event is an action such as a click or a key press. An event handler is the function that runs when it happens.
Common events: onclick, ondblclick, onmouseover, onmouseout, onkeydown, onchange, onfocus, onblur, onload, onsubmit and oncontextmenu.
Three ways to attach a handler: an attribute <button onclick="f()">, a property btn.onclick = f; or btn.addEventListener("click", f).
The event object gives details such as event.target and event.clientX. event.preventDefault() stops the normal action. A custom context menu uses it inside oncontextmenu.
Data binding (Internet Explorer only): the datasrc and datafld attributes filled a table from a CSV or XML file in the browser.
Example.
<body onload="tick()"> <p id="clock"></p> <script> function tick() { document.getElementById("clock").innerHTML = new Date().toLocaleTimeString(); setTimeout(tick, 1000); } </script> </body>
Real-life example
A drop-down menu that opens when you move the mouse over it is DHTML. A mouseover event runs a small JavaScript function that changes the CSS of the menu.
The four parts of DHTML
Same or opposite: onclick and onmouseover
Point
onclick
onmouseover
Same or opposite
Fires when
Element is clicked
Pointer moves over it
Opposite
Example use
Submit, show answer
Open menu, show tip
Opposite
Is a JavaScript event
Yes
Yes
Same
Works on touch screens
Yes
Not well
Opposite
Exam tip. Write DHTML = HTML + CSS + JavaScript + DOM on the first line of your answer. For the date and time program, use new Date().toLocaleString().
Asked 10 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“Explain the concepts of cookies and sessions in PHP.” (2024, 2026)
“What is the difference between sessions and cookies in PHP?” (2020, 2023)
“Explain cookies, sessions and OOP concepts in PHP.” (2025)
The short answer
HTTP does not remember a user between requests, so a cookie stores a small piece of data in the browser. A session stores the data on the server and keeps only a session id in a cookie.
Write these points
Set a cookie: setcookie("user", "Ravi", time() + 86400); keeps it for one day. Call it before any HTML output.
Read it with $_COOKIE["user"] on the next request. Delete it with a past time: setcookie("user", "", time() - 3600);
Start a session with session_start() at the top of every page. Store data with $_SESSION["user"] = "Ravi";. On logout call session_unset() and session_destroy().
PHP sends the session id in a cookie named PHPSESSID, so the server finds the right session. Use cookies for theme or remember me. Use sessions for login and a cart.
A shopping site remembers your cart while you browse, even though HTTP forgets each request. It keeps a session on the server and a small cookie in your browser with the session ID.
A cookie keeps data in the browser. A session keeps it on the server
Same or opposite: cookie and session
Point
Cookie
Session
Same or opposite
Stored on
Browser
Server
Opposite
Size limit
About 4 KB
Large
Opposite
Security
Lower, user can see it
Higher
Opposite
Remembers the user across requests
Yes
Yes
Same
Exam tip. setcookie() and session_start() must come before any echo or HTML, because they send headers. A cookie set on this page shows up in $_COOKIE only on the next request.
RGPV teaches Internet and Web Technology to 5 branches under one syllabus. Each branch prints its own code on the paper, but the units are the same. So one page and one PDF serve all of them.
We counted every question in the Internet and Web Technology papers on this site by topic, from 2020 to 2026. A topic that keeps coming back is a topic RGPV likes, so it sits higher in the table. One branch alone has only a few papers. Counting them together gives a surer list.
Internet and Web Technology important questions by branch
CS-504-AInternet and Web Technology important questions for CSE, Semester 5
CS-504-A follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CS-504-A important questions too.
Internet and Web Technology (CS-504 A) teaches how websites are designed and built. It is an elective in Semester 5 of RGPV B.Tech CSE with five units: web basics, HTML, CSS with JavaScript, XML with PHP, and PHP with MySQL. Build a small site as you study, because every unit is practical.
Internet and Web Technology unit-wise brief
Unit 1: Introduction to the web and web design
This unit covers the World Wide Web, the HTTP request and response, browsers and servers, Web 2.0, and the principles of effective web design: layout, navigation, bandwidth, display resolution, look and feel, and planning and publishing a site. Be able to explain how a page request travels from browser to server.
Unit 2: HTML
HTML is the language of web pages. You learn formatting, colour, links, lists, tables, images, forms, XHTML, meta tags, character entities, frames, browser architecture and an overview of HTML5. Build one page that uses each element.
Unit 3: Style sheets and JavaScript
This unit covers CSS (syntax, colours, fonts, boxes, margins, positioning, and an overview of CSS3), then JavaScript: variables, functions, loops, objects, the document object model (DOM), forms and validation, and DHTML, which combines HTML, CSS and JavaScript. Write a small form with JavaScript validation.
Unit 4: XML and PHP
Here you study XML, its uses, DTD and schemas, and transformation with XSL and XSLT. Then you start PHP: syntax, loops, arrays, functions, form processing, files, cookies and sessions, and object oriented PHP. Know how cookies differ from sessions.
Unit 5: PHP and MySQL
The last unit connects PHP to a database: connecting to the server, creating and selecting a database, creating and altering tables, inserting and deleting data, running queries, and using phpMyAdmin. Write a PHP page that saves a form to MySQL.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 5 (AICTE flexible curriculum, w.e.f. July 2019). For the full topic list of each unit, open the Internet and Web Technology notes.
What are the most important topics in Internet and Web Technology?
By how often they were asked in the papers on this site: CSS: need, syntax, types of style sheets and advantages (21 times); Effective web design and web design issues (20 times); Database operations in PHP: create, list, insert, update, delete (16 times); PHP basics: syntax, variables, decisions, loops, arrays, functions (16 times); Document Object Model (DOM) and DOM manipulation (15 times).
How were these Internet and Web Technology important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2020-2026). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Internet and Web Technology important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Internet and Web Technology is free to download from this page.
The 15 most repeated topics of Internet and Web Technology (CS-504-A) for RGPV B.Tech CSE semester 5, counted from the previous year papers on this site. The same syllabus is taught under 5 codes: CS-504-A, AD-503-A, CY-603-A, IS-602, AL-703-D. Internet and Web Technology is also searched for as CS-504.