#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Web Technology Important Questions (Unit-wise) PDF

Unit-wise Web Technology important questions for B.Tech: HTML, CSS, JavaScript, DOM, XML, servlets, JSP, sessions, AJAX, PHP or Node.js and databases.

5 pages · 117 KB · PDF · Updated 5 Nov 2026

Prepared by: Uncodemy trainer team  ·  Reviewed by: Uncodemy  ·  Last reviewed: 5 Nov 2026

Quick Answer

The most important Web Technology questions are the working of the web and HTTP, HTML forms, tables and semantic tags, CSS selectors, the box model and positioning, JavaScript functions, events, form validation and the DOM, XML with DTD and XSD, the servlet life cycle, JSP and its implicit objects, cookies and sessions, JDBC, AJAX and JSON, and server-side scripting with PHP or Node.js, depending on your syllabus.

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

  1. Explain how a web page is requested and delivered, covering DNS, HTTP requests and responses and status codes.
  2. Explain HTML forms and their input types with an example registration form.
  3. Explain HTML tables with rowspan and colspan, using an example timetable.
  4. Explain the new features of HTML5, including audio, video and canvas.
  5. Explain lists, links, images and frames in HTML.
  6. 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

  1. Explain the types of CSS selectors with examples.
  2. Explain the box model with a diagram (content, padding, border, margin).
  3. Explain CSS positioning: static, relative, absolute, fixed and sticky.
  4. Explain Flexbox and Grid layouts with examples.
  5. Explain media queries and responsive web design.
  6. 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

  1. Explain JavaScript data types, operators and control statements.
  2. Explain functions, arrow functions and objects in JavaScript.
  3. Write a JavaScript program to validate a registration form (empty fields, email format, password length).
  4. Explain event handling with examples of onclick, onchange and onsubmit.
  5. Explain how to access and change elements using the DOM.
  6. Explain AJAX and JSON, and how fetch works.
  7. 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

  1. Explain XML, its syntax rules, and write an XML document for a student record.
  2. Compare DTD and XML Schema (XSD) with examples.
  3. Explain DOM and SAX parsers.
  4. Explain the servlet life cycle (init, service, destroy) with a diagram.
  5. Write a servlet that reads form data and displays it.
  6. 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

  1. Explain the JSP life cycle and the JSP elements: directives, scriptlets, expressions and declarations.
  2. Explain session tracking methods: cookies, URL rewriting, hidden fields and HttpSession.
  3. Write a JSP or servlet program that connects to a database using JDBC and shows records.
  4. Explain MVC architecture in web applications.
  5. 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:

  1. Write the HTML form. Fields for name, email, password and a submit button, with onsubmit="return validate()" on the form tag.
  2. Write the function. Get each value with document.getElementById(...).value.
  3. 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.
  4. Return true at the end. The form submits only when every check passes.
  5. 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

  1. 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.
  2. 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.
  3. 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

Download PDF

Sources and further reading

Frequently Asked Questions

Which Web Technology topics are most important?
HTTP basics, HTML forms and tables, the CSS box model and selectors, JavaScript validation and the DOM, XML with DTD and XSD, the servlet life cycle, JSP, and sessions and cookies are asked most often.
My syllabus has PHP instead of servlets. Is this page still useful?
Yes. Units 1 to 3 (HTML, CSS and JavaScript) are common to almost every syllabus. For Units 4 and 5, follow your own syllabus and use the PHP or Node.js questions in Unit 5.
Is Web Technology useful for jobs?
Yes. HTML, CSS and JavaScript are the base of front-end and full stack development, which many software roles need.
Are these Web Technology questions from previous year papers?
No. They are practice questions built from topics that appear in most B.Tech Web Technology syllabi. Use them with your own university's official previous papers, for example the AKTU archive at https://aktu.ac.in/old-question-paper.html.
Is this PDF free?
Yes. Fill in the short form on this page and the PDF downloads right away.