Back to Syllabus Hub
Unit 1060 Periods Allocated

Web Development

Covers client-server web architecture, semantic HTML5 structure, CSS design systems, and PHP-MySQL dynamic scripting.

Syllabus Competency Mappings

Level 10.3Competency Level

Identifies appropriate HTML tags to design a single web page.

Key Topics:
  • HTML page structure (html, head, body)
  • Formatting tags (h1-h6, p, br, lists, tables)
Level 10.7Competency Level

Creates dynamic web pages using PHP and MySQL.

Key Topics:
  • Embedding PHP code
  • POST/GET form handlers
  • Database connections and query execution

A/L ICT Competency Study Guide

1. Client-Server Architecture

Web sites execute operations across two primary environments:

  • Client-Side: Static files (HTML, CSS, JS) downloaded by the user's browser for rendering and user interaction.
  • Server-Side: Scripts (like PHP) executed on the host server to fetch database details before outputting standard HTML to the client browser.

2. Dynamic PHP Scripting

A/L ICT questions frequently test how to connect a PHP script to a MySQL database to read and save user registration inputs.

Sample PHP Database Connection & Write:

<?php
$conn = mysqli_connect("localhost", "root", "", "itguru_db");

if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $name = mysqli_real_escape_string($conn, $_POST["name"]);
    $email = mysqli_real_escape_string($conn, $_POST["email"]);

    $sql = "INSERT INTO Students (Name, Email) VALUES ('$name', '$email')";
    
    if (mysqli_query($conn, $sql)) {
        echo "Registration successful!";
    } else {
        echo "Error: " . mysqli_error($conn);
    }
}
mysqli_close($conn);
?>

Keep going

Learn this unit in class

Teran Subasinghe (UK QTS) teaches all 14 units from the basics, with unit tests along the way. Physical classes in Nugegoda and Bambalapitiya, or live online from anywhere in Sri Lanka.

Ask GuruBotQuestions about classes