Who it is for: Learners who want to build websites for a business, a school, or a community group. The JavaScript lessons need Python 2 first.
Many local businesses and groups need a simple website, and most visitors use a phone on slow data. A small page that loads fast and works offline can serve them well. At the end, the learner can build a one-page site that looks right on a phone and copy it to a local hotspot.
HTML comes first, then CSS to style it, then JavaScript to make it respond. AI tools now write page layouts quickly, so this module spends more time on what they get wrong: how the web works, pages that everyone can use, and safe handling of what users type. A tested study found AI-written code failed to block a common web attack (cross-site scripting) in most cases.
AI policy: Builders may use AI only as a tutor, with the teacher present, after they have shown the skill without it. Pioneers and adults may use AI after the checkpoint, and must test the page on a phone, check how it handles input, and explain the code in their own words. The checkpoint is done without AI.
Planned lessons
- How a web page reaches you: browser, server, and HTTP
- HTML: headings, paragraphs, and links
- HTML: lists, images, and forms
- Reading and fixing a page with the browser's developer tools
- Pages everyone can use: alt text, labels, and clear headings
- CSS: colors, fonts, and spacing
- CSS layout: boxes that fit a phone screen
- JavaScript: variables, events, and the console
- JavaScript: changing a page from code
- Never trust user input: showing it safely
- Building a one-page site that runs offline
- Testing on a phone and fixing layout
Teach it as
| One session | Write one HTML page with a heading, a list, and a link, style it with CSS, and check it on a phone, in one 2 hour class. |
|---|---|
| One day | Morning: how the web works, HTML structure, and reading a page with the browser's developer tools. Afternoon: CSS styling, a phone-friendly layout, and a phone test. |
| One week | Day 1: how the web works and HTML. Day 2: more HTML, forms, and accessible pages. Day 3: CSS styling and layout for a phone. Day 4: JavaScript events, changing the page, and treating input safely. Day 5 (Build and Show): checkpoint without AI (read and fix a broken page), then each learner shows a one-page site on a phone. |
Know this first
- Mouse, keyboard, and typing
- Python 2: decisions and loops
Standards this follows
- CS2023 Specialized Platform Development (SPD): web platforms
- CS2023 Security (SEC): handling untrusted input
- Uganda NCDC lower secondary ICT, S4: Web design
- Microsoft Web Dev for Beginners (MIT licence) and freeCodeCamp as references
Videos to download
No videos listed yet.