Key takeaways
- HTML forms, CSS box model, JavaScript validation, the servlet life cycle and sessions are the most common long questions.
- Write short, correct code snippets for HTML, CSS and JavaScript answers.
- Syllabi vary most in Unit 4 and 5 (servlets and JSP versus PHP or Node.js), so check yours.
- These are practice questions, not past papers; check your own syllabus and official previous papers.
About these important questions
This page lists the most important Web Technology questions for B.Tech CSE and IT exams, arranged unit by unit. The units follow the standard syllabus that most Indian technical universities share, so the order may differ slightly from yours.
Please note: these are practice questions based on common syllabus topics. They are not verified past papers, and we do not claim that any question will appear in your exam. Check your own university syllabus first, then solve the official previous year papers. AKTU students can download them from the AKTU old question paper archive.
Unit 1: Introduction to the Web and HTML
Covers the internet, the web, HTTP, web servers and HTML.
Short questions (2 marks)
- Differentiate between the internet and the World Wide Web.
- Differentiate between GET and POST.
- What are semantic tags in HTML5? Give examples.
Long questions
- Explain how a web page is requested and delivered, covering DNS, HTTP requests and responses and status codes.
- Explain HTML forms and their input types with an example registration form.
- Explain HTML tables with rowspan and colspan, using an example timetable.
- Explain the new features of HTML5, including audio, video and canvas.
- Explain lists, links, images and frames in HTML.
- Explain the role of a web server and a web browser, and the difference between static and dynamic web pages.
Unit 2: CSS
Covers CSS syntax, selectors, the box model, layout and responsive design.
Short questions (2 marks)
- Differentiate between inline, internal and external CSS.
- What is the CSS box model?
- Differentiate between class and id selectors.
Long questions
- Explain the types of CSS selectors with examples.
- Explain the box model with a diagram (content, padding, border, margin).
- Explain CSS positioning: static, relative, absolute, fixed and sticky.
- Explain Flexbox and Grid layouts with examples.
- Explain media queries and responsive web design.
- Explain CSS pseudo-classes, pseudo-elements and specificity with examples.
Unit 3: JavaScript and DOM
Covers JavaScript basics, functions, objects, events, the DOM and form validation.
Short questions (2 marks)
- Differentiate between var, let and const.
- Differentiate between == and ===.
- What is the DOM?
Long questions
- Explain JavaScript data types, operators and control statements.
- Explain functions, arrow functions and objects in JavaScript.
- Write a JavaScript program to validate a registration form (empty fields, email format, password length).
- Explain event handling with examples of onclick, onchange and onsubmit.
- Explain how to access and change elements using the DOM.
- Explain AJAX and JSON, and how fetch works.
- Explain JavaScript objects such as Date, Math and Array, and write a program that sorts an array of numbers.
Unit 4: XML and Server-Side Programming
Covers XML, DTD, XSD and server-side technologies such as servlets.
Short questions (2 marks)
- Differentiate between HTML and XML.
- What is a well-formed XML document?
- What is a servlet?
Long questions
- Explain XML, its syntax rules, and write an XML document for a student record.
- Compare DTD and XML Schema (XSD) with examples.
- Explain DOM and SAX parsers.
- Explain the servlet life cycle (init, service, destroy) with a diagram.
- Write a servlet that reads form data and displays it.
- Explain the difference between the servlet doGet and doPost methods.
Unit 5: JSP, Sessions and Database Connectivity
Covers JSP, session tracking and database access. Some universities teach PHP or Node.js here instead.
Short questions (2 marks)
- List the JSP implicit objects.
- Differentiate between cookies and sessions.
- What is a JavaBean?
Long questions
- Explain the JSP life cycle and the JSP elements: directives, scriptlets, expressions and declarations.
- Explain session tracking methods: cookies, URL rewriting, hidden fields and HttpSession.
- Write a JSP or servlet program that connects to a database using JDBC and shows records.
- Explain MVC architecture in web applications.
- If your syllabus covers PHP: explain PHP arrays, forms and MySQL connection. If it covers Node.js: explain modules, Express routing and npm.
Sample answer outline: JavaScript form validation
A common long question asks you to validate a registration form with JavaScript. Structure the answer like this:
- Write the HTML form. Fields for name, email, password and a submit button, with
onsubmit="return validate()"on the form tag. - Write the function. Get each value with
document.getElementById(...).value. - Check each rule. If the name is empty, show an alert and return false. Check the email with a simple regular expression such as
/^[^@\s]+@[^@\s]+\.[^@\s]+$/. Check that the password has at least 8 characters. - Return true at the end. The form submits only when every check passes.
- Explain why both sides validate. Client-side validation gives quick feedback, but the server must validate again, because users can turn off or bypass JavaScript.
Mention HTML5 attributes such as required, type="email" and minlength as a simpler first layer. This shows you know modern practice as well as the textbook method.
Marks weightage and how to write answers
A common pattern, used by AKTU and many other universities, has a compulsory short-answer section that covers every unit, followed by long-answer questions with a choice inside each unit. Marks per question change between universities and years, so confirm the scheme on a recent official paper.
- Short answers (about 2 marks): a crisp definition, one example or diagram, and nothing more. Three to five lines is enough.
- Long answers (7 to 10 marks): start with a definition, add a labelled diagram or table, explain the steps, and finish with an example, advantages or a comparison.
- For HTML, CSS and JavaScript, write correct, indented code with closing tags. Short and correct beats long and broken.
- For servlet and JSP life cycles, draw the diagram first, then explain each method.
A 7-day revision plan for Web Technology
- Days 1 to 5: one unit a day. Read your notes, then write the long answers for that unit from memory and check them against your notes.
- Day 6: write from memory a registration form, a CSS layout, a validation script, an XML file with a DTD and a servlet or JSP with JDBC.
- Day 7: solve one full official previous year paper in three hours, then check which units cost you time.
Keep a single sheet of formulas, definitions and diagrams for the last hour before the exam.
Download Web Technology Important Questions PDF
Web Technology Important Questions PDF
The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.
5 pages · 117 KB · PDF · Updated 5 Nov 2026