CS-504-A AD-503-A CY-603-A
+2 moreIS-602 AL-703-D
Internet and Web Technology

Internet and Web Technology Important Questions

RGPV · B.Tech · CSE · Semester 5 · Current scheme · 7 papers (2020 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Internet and Web Technology important questions

Download Paperwala Imp Question & Answer (PDF)

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

  1. 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.
  2. 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.
  3. Selectors: element (p), class (.note, for many tags), id (#top, once on a page) and group (h1, h2).
  4. 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>.
  5. 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.
  6. 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.

Example.

/* site.css */
.note { color: red; border: 1px solid red; padding: 8px; }
<!-- page.html -->
<link rel="stylesheet" href="site.css">
<p class="note">Exam on Monday</p>

Real-life example

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>)
Inline, internal and external CSS (usual priority when <link> comes before <style>)

Same or opposite: inline and external CSS

PointInlineExternalSame or opposite
Written instyle attribute of a tagSeparate .css fileOpposite
Reuse across pagesNoYesOpposite
PriorityHighestLower than inlineOpposite
Styles HTML elementsYesYesSame

Exam tip. Give one short example of each of the three types. Name the three parts of a rule: selector, property and value.

Back to the topic list

Q2. Effective web design and web design issues

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

  1. 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.
  2. 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.
  3. Cache: the browser keeps copies of files it has loaded. Keep shared CSS and JavaScript in separate files so they load once.
  4. 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.
  5. 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.
  6. 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
Six web design issues a designer plans for

Same or opposite: good and poor web design

PointGood designPoor designSame or opposite
NavigationClear menu, few clicksHidden, deep linksOpposite
Load timeFastSlowOpposite
Works on mobileYes, responsiveNoOpposite
Is a website for usersYesYesSame

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.

Back to the topic list

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

  1. mysqli_query($conn, $sql) returns true or false for CREATE, INSERT, UPDATE and DELETE. For SELECT and SHOW it returns a result set.
  2. Read a result set row by row with mysqli_fetch_assoc() (columns by name) or mysqli_fetch_row() (columns by number).
  3. mysqli_num_rows($r) gives the number of rows found. mysqli_affected_rows($conn) gives the number of rows changed.
  4. 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.
  5. For data typed by a user, use a prepared statement (mysqli_prepare with bind_param). It stops SQL injection.
TaskSQL sent with mysqli_query()
Create databaseCREATE DATABASE college
Select databasemysqli_select_db($conn, "college")
List databases / tablesSHOW DATABASES / SHOW TABLES
Create tableCREATE TABLE student (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50), marks INT)
InsertINSERT INTO student (name, marks) VALUES ('Ravi', 78)
UpdateUPDATE student SET marks = 85 WHERE id = 1
Delete row / table / databaseDELETE FROM student WHERE id = 1 / DROP TABLE student / DROP DATABASE college

Example.

<?php
$conn = mysqli_connect("localhost", "root", "", "college");
$r = mysqli_query($conn, "SELECT name, marks FROM student");
while ($row = mysqli_fetch_assoc($r)) {
echo $row["name"] . " : " . $row["marks"] . "<br>";
}
mysqli_close($conn);
?>

Real-life example

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
Figure: one database operation in PHP

Same or opposite: mysqli_query() and prepared statements

Pointmysqli_query() with plain SQLPrepared statementSame or opposite
SQL injection riskHigh if input is joined into SQLLowOpposite
Speed for repeated queriesNormalFasterOpposite
Sends SQL to MySQLYesYesSame
Code lengthShorterSlightly longerOpposite

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.

Back to the topic list

Q4. PHP basics: syntax, variables, decisions, loops, arrays, functions

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

  1. Syntax: each statement ends with a semicolon. echo prints output. Comments use //, # or /* */. A .php file can mix HTML and PHP.
  2. 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.
  3. Operators: arithmetic (+ - * / %), comparison (== === != < >), logical (&& || !), string join (.) and assignment (= +=).
  4. Decisions: if, if...else, elseif and switch. Loops: while, do...while, for and foreach (for arrays).
  5. Arrays: indexed $a = array(10, 20); associative $m = ["Math" => 80]; and multidimensional. Useful functions: count(), sort(), array_push().
  6. 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
The server runs PHP. The browser gets plain HTML

Same or opposite: indexed and associative array

PointIndexedAssociativeSame or opposite
KeysNumbers 0, 1, 2Names like "roll"Opposite
Example$a = array(10, 20)$s = array("roll" => 7)Opposite
Loop with foreachYesYesSame
Good forListsRecordsOpposite

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.

Back to the topic list

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

  1. Every tag becomes an element node and the text inside becomes a text node. The document object sits at the root.
  2. Find elements: document.getElementById("msg"), getElementsByTagName("p"), getElementsByClassName("note") or querySelector("#msg").
  3. Change content with el.innerHTML or el.textContent. Change an attribute with el.setAttribute("src", "b.png").
  4. Change style: el.style.color = "red"; el.style.fontSize = "24px"; el.style.left = "50px" (the element needs position set).
  5. Add and remove: document.createElement("li"), parent.appendChild(li) and parent.removeChild(li).
  6. Events: el.addEventListener("click", show) runs show() when the user clicks.
  7. 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
Each tag is a node. JavaScript reaches a node and changes it

Same or opposite: getElementById() and querySelectorAll()

PointgetElementById()querySelectorAll()Same or opposite
ReturnsOne elementA list of elementsOpposite
SelectorOnly an idAny CSS selectorOpposite
Part of the DOM APIYesYesSame
ExamplegetElementById("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.

Back to the topic list

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

  1. 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 &lt; and &amp;.
  2. 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.
  3. Uses: data exchange between different systems, configuration files, RSS feeds, web services (SOAP) and office files such as DOCX.
  4. 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.
PointXMLHTML
PurposeStores and carries dataDisplays data
TagsMade by the userFixed set (<p>, <h1>)
CaseCase sensitiveNot case sensitive
Closing tagsAlways neededSome optional (<br>, <li>)
ErrorsParser stopsBrowser tries to show the page

The same data in XML.

<student roll="101"><name>Asha</name><marks>82</marks></student>

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
Parts of a small XML document

Same or opposite: XML and HTML

PointXMLHTMLSame or opposite
PurposeCarry and store dataShow dataOpposite
TagsMade by the writerFixed setOpposite
ErrorsNot allowed, must be well formedBrowser forgivesOpposite
Markup languageYesYesSame

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.

Back to the topic list

Q7. PHP and MySQL connectivity

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

  1. 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.
  2. PHP, MySQL and Apache together run most small dynamic sites. XAMPP and WAMP install all three on a laptop.
  3. The old mysql_connect() functions were removed in PHP 7. Use mysqli or PDO.
  4. Object style: $conn = new mysqli("localhost", "root", "", "college"); then check $conn->connect_error.
  5. PDO style: $pdo = new PDO("mysql:host=localhost;dbname=college", "root", ""); PDO works with many databases.

Steps

  1. Connect: $conn = mysqli_connect("localhost", "root", "password", "college"); The four values are host, user, password and database.
  2. Check: if (!$conn) { die("Connection failed: " . mysqli_connect_error()); }
  3. Select a database if it was not given above: mysqli_select_db($conn, "college");
  4. Run a query: $result = mysqli_query($conn, "SELECT * FROM student");
  5. Read rows: while ($row = mysqli_fetch_assoc($result)) { echo $row["name"]; }
  6. Close: mysqli_close($conn);

Reading rows from MySQL.

$con = mysqli_connect("localhost", "root", "", "college");

$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
The five steps of a PHP and MySQL script

Same or opposite: mysqli and PDO

PointmysqliPDOSame or opposite
DatabasesMySQL only12 kindsOpposite
StyleProcedural and objectObject onlyOpposite
Prepared statementsYesYesSame
Named parametersNoYesOpposite

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.

Back to the topic list

Q8. HTTP protocol: request, response and methods

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

  1. 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.
  2. 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.
  3. 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).
  4. HTTP is stateless. The server does not remember earlier requests, so sites add cookies and sessions to remember a user.
  5. 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.
  6. A WebSocket starts as an HTTP request, then upgrades to one open two way connection. The server can then push data without being asked.
MethodWhat it does
GETAsks for a resource. Data goes in the URL, so it is seen and can be bookmarked
POSTSends data in the body, such as a form or a file
PUT / PATCHReplaces a resource / changes part of it
DELETERemoves a resource
HEADSame 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
One HTTP request and its response

Same or opposite: GET and POST

PointGETPOSTSame or opposite
Data sent inURLRequest bodyOpposite
Bookmarked or cachedYesNoOpposite
Good forReading dataSending forms, passwordsOpposite
HTTP methodYesYesSame

Exam tip. Draw the request and the response and label their parts. Write at least four methods and four status codes.

Back to the topic list

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

  1. 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.
  2. Radio buttons: type="radio". Buttons with the same name form one group and only one of them can be selected.
  3. Check boxes: type="checkbox". Each box is on or off by itself, so the user can tick many.
  4. <select> with <option> tags makes a drop down list. <textarea rows="4" cols="30"> takes long text.
  5. Buttons: type="submit" sends the form. type="reset" clears it. <label for="id"> joins text to a field.
  6. Useful attributes: name (the key sent to the server), value, placeholder, required and maxlength.
  7. 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.
PointRadio buttonCheck box
ChoicesOnly one in a groupAny number
ShapeRoundSquare
UseGender, yes or noHobbies, subjects
<form action="save.php" method="post">
  Name:  <input type="text" name="name" required><br>
  Phone: <input type="tel" name="phone" pattern="[0-9]{10}"><br>
  <input type="radio" name="g" value="M"> Male
  <input type="radio" name="g" value="F"> Female<br>
  <input type="checkbox" name="hobby[]" value="music"> Music<br>
  <input type="submit" value="Send">
</form>

What it sends.

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
Figure: how a form reaches the server

Same or opposite: radio button and check box

PointRadio buttonCheck boxSame or opposite
Choices allowedOne per groupAny numberOpposite
Grouped bySame nameEach independentOpposite
ExampleGenderHobbiesOpposite
Is an input type in a formYesYesSame

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.

Back to the topic list

Q10. DTD and XML Schema

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

  1. Why use a DTD: it checks that an XML file is valid, so two programs agree on one format before they exchange data.
  2. Components: <!ELEMENT> declares an element and its content. <!ATTLIST> declares attributes. <!ENTITY> declares a shortcut. #PCDATA means text.
  3. Symbols in a content list: + one or more, * zero or more, ? optional, a comma for order and | for a choice.
  4. Attribute types are CDATA, ID, IDREF or a list of values. Defaults are #REQUIRED, #IMPLIED or #FIXED.
  5. 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.
  6. Schema data types: xs:string, xs:integer, xs:decimal, xs:date and xs:boolean. simpleType adds limits (minInclusive). complexType describes an element with children.
PointDTDXML Schema
SyntaxIts own syntaxWritten in XML
Data typesText only (#PCDATA)Many types: integer, date, boolean
NamespacesNot supportedSupported
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
Figure: well formed and valid XML

Same or opposite: DTD and XML Schema

PointDTDXML SchemaSame or opposite
Written inIts own syntaxXMLOpposite
Data typesText onlyint, date, decimal and moreOpposite
NamespacesNot supportedSupportedOpposite
Defines valid structureYesYesSame

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.

Back to the topic list

Q11. Web browser and web server

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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
How a browser and a web server work together

Same or opposite: web browser and web server

PointWeb browserWeb serverSame or opposite
RoleClientServerOpposite
Runs onUser's deviceHost computerOpposite
ExamplesChrome, FirefoxApache, NginxOpposite
Speaks HTTPYesYesSame

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.

Back to the topic list

Q12. Difference between HTML and XHTML

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

  1. 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>.
  2. Why XHTML: the code is cleaner, XML tools can read it and it shows the same on more devices.
  3. 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.
PointHTMLXHTML
Based onSGMLXML
Tag caseAny caseLowercase only
Closing tagsSome optional (<p>, <li>)Every tag closed
Empty elements<br><br />
Attribute valuesQuotes optionalAlways in quotes
Short attributes<input checked>checked="checked"
Nesting errorsBrowser tolerates themNot allowed
DOCTYPE and xmlnsOptional in practiceRequired

Example.

HTML: <P>Line one<BR><INPUT type=checkbox checked>
XHTML: <p>Line one<br /><input type="checkbox" checked="checked" /></p>

  • 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
Figure: XHTML rules

Same or opposite: HTML and XHTML

PointHTMLXHTMLSame or opposite
Tag namesAny caseLower caseOpposite
Closing tagsSome optionalAlways neededOpposite
Empty tags<br><br />Opposite
Used to build web pagesYesYesSame

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.

Back to the topic list

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

  1. JavaScript is built into every browser, so the page reacts at once with no trip to the server.
  2. 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.
  3. Conditions: if, else if, switch and ? :. Loops: for, while, do...while and for...of.
  4. 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.
  5. Built in objects: Date, String, Array and Math. Math methods include Math.round(), Math.max(), Math.sqrt(), Math.floor() and Math.random().
PointClient sideServer side
Runs onBrowserWeb server
User can see codeYes (View Source)No
Database accessNo direct accessYes
Used forForm checks, effects, DOM changesLogin, 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
Client side code runs in the browser. Server side code runs on the server

Same or opposite: client side and server side scripting

PointClient sideServer sideSame or opposite
Runs onBrowserWeb serverOpposite
LanguageJavaScriptPHP, Python, Node.jsOpposite
Can reach the databaseNoYesOpposite
Makes pages dynamicYesYesSame

Exam tip. Write the table first, then the JavaScript points. Use 1 inch = 2.54 cm for the height conversion program.

Back to the topic list

Q14. DHTML and JavaScript event handling

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

  1. HTML gives the content and CSS gives the look. JavaScript gives the logic. The DOM lets JavaScript reach every element.
  2. 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.
  3. An event is an action such as a click or a key press. An event handler is the function that runs when it happens.
  4. Common events: onclick, ondblclick, onmouseover, onmouseout, onkeydown, onchange, onfocus, onblur, onload, onsubmit and oncontextmenu.
  5. Three ways to attach a handler: an attribute <button onclick="f()">, a property btn.onclick = f; or btn.addEventListener("click", f).
  6. 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.
  7. 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
The four parts of DHTML

Same or opposite: onclick and onmouseover

PointonclickonmouseoverSame or opposite
Fires whenElement is clickedPointer moves over itOpposite
Example useSubmit, show answerOpen menu, show tipOpposite
Is a JavaScript eventYesYesSame
Works on touch screensYesNot wellOpposite

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().

Back to the topic list

Q15. Cookies and sessions in PHP

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

  1. Set a cookie: setcookie("user", "Ravi", time() + 86400); keeps it for one day. Call it before any HTML output.
  2. Read it with $_COOKIE["user"] on the next request. Delete it with a past time: setcookie("user", "", time() - 3600);
  3. 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().
  4. 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.
PointCookieSession
Stored inBrowserServer
SizeAbout 4 KB per cookieLimited only by server space
SafetyUser can see and change itData stays on the server
EndsAt the expiry time setWhen the browser closes or after a timeout

Example.

<?php
session_start();
$_SESSION["user"] = "Ravi";
setcookie("theme", "dark", time() + 7 * 24 * 3600);
echo "Welcome " . $_SESSION["user"];
?>

Real-life example

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
A cookie keeps data in the browser. A session keeps it on the server

Same or opposite: cookie and session

PointCookieSessionSame or opposite
Stored onBrowserServerOpposite
Size limitAbout 4 KBLargeOpposite
SecurityLower, user can see itHigherOpposite
Remembers the user across requestsYesYesSame

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.

Back to the topic list

How we picked these questions

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-A Internet 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.

See all 7 CS-504-A previous year papers

AD-503-A Internet and Web Technology important questions for AI & Data Science, Semester 5

AD-503-A follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the AD-503-A important questions too.

See all 2 AD-503-A previous year papers

CY-603-A Internet and Web Technology important questions for Cyber Security, Semester 6

CY-603-A follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CY-603-A important questions too.

See all 3 CY-603-A previous year papers

IS-602 Internet and Web Technology important questions for IOT, Semester 6

IS-602 follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the IS-602 important questions too.

See all 3 IS-602 previous year papers

AL-703-D Internet and Web Technology important questions for CSE-AIML, Semester 7

AL-703-D follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the AL-703-D important questions too.

See all 2 AL-703-D previous year papers

About Internet and Web Technology

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.

Start with the latest papers

Internet and Web Technology - Dec 2025

Internet and Web Technology - Jun 2025

Internet and Web Technology - Dec 2024

See all 7 papers →

Internet and Web Technology (CS-504-A) FAQs

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.

Also known as CS-504