ElectiveYear 2 Sem 1

TIT3151

Web Programming

Covers client-side and server-side web development fundamentals including HTML, CSS, JavaScript, and PHP.

Topics Covered

  1. HTML5 structure and semantics
  2. CSS3 — selectors, box model, flexbox, grid
  3. JavaScript fundamentals and DOM manipulation
  4. PHP and server-side scripting basics
  5. Forms, validation, and simple CRUD with MySQL

Study Guide

Getting started

This subject is split roughly 40% theory, 60% practical. Make sure you set up a local environment early — XAMPP is the recommended stack for the PHP portions.

HTML & CSS

Focus on understanding the box model deeply — most layout bugs in assignments come from margin/padding confusion. Practice building a layout from scratch without looking at references.

JavaScript

The exam typically has one question on DOM manipulation. Know how to use getElementById, addEventListener, and basic form validation by hand.

PHP + MySQL

For the final assignment you will build a simple CRUD web app. Start early — the database connection and prepared statements trip up most students in the last week.

Exam Tips

  • Past year questions heavily favour CSS layout — practice flexbox and grid side by side.
  • The PHP portion of the exam is open-notes in some semesters — confirm with your lecturer.
  • Use the W3Schools sandbox for quick HTML/CSS experiments during revision, but don't rely on it for JavaScript.
  • Comment your assignment code — marks are given for readability.

External Resources