Skip to content

Web courses: HTML, CSS and browser JavaScript in C - #29

Merged
otzpt merged 2 commits into
mainfrom
feat/web-courses
Nov 9, 2026
Merged

otzpt merged 2 commits into
mainfrom
feat/web-courses

Conversation

@otzpt

@otzpt otzpt commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds HTML, CSS and Web JavaScript as three terminal programs in plain C, in html/, css/ and webjs/, with the same layout as gui/. Five modules each. None of them opens a browser or links against one.
  • Adds a WEB group to the launcher, so entries after C# move up by three: HTML 11, CSS 12, Web JavaScript 13, Security 14, GUI 15, Git 16, Libraries 17. The CI smoke test follows.
  • Builds and bundles them with the other compiled courses on both platforms, including the .deb, Arch package, AppImage and install.sh.
  • Adds first_taught tables for them to tools/check-teaching-order.py.

The first commit on this branch built these as browser pages and the second replaces that. Squash on merge so the removed pages stay out of main.

Stacked on #28. Merge #27 and #28 first, then retarget this to main; Fixes only closes the issue once it lands there.

How lessons make claims

A terminal cannot render a page. Where a result depends on a browser, the lesson quotes what one did, measured by script in Chromium 152. Anything C can work out it computes when the lesson runs: form encoding, reading UTF-8 bytes as windows-1252, box and flex arithmetic, clamp() and specificity.

Checked

  • CI run 42701874272 on 60da20e, Windows and Linux: the three courses compile with -Wall -Wextra -Werror.
  • The same run on Linux: every module of each course reaches its SUMMARY, the launcher reaches each course, and tools/check-teaching-order.py passes.
  • All 15 challenge solutions run in Chromium 152 and meet what their challenges promise, including the fetch one against the live API.
  • The values quoted in the lessons were measured at a 1280 by 900 window, and at 375 pixels for the viewport lesson. That measuring corrected three claims first written from memory.

Not checked

  • Firefox and Safari. Only Chromium was used, and the lessons name it.
  • The modules were walked on piped input, not in a real terminal. Nobody has read them through on screen.
  • Windows ran the build and the launcher's own smoke test, but did not walk these modules.
  • What search engines and link previews do with metadata, and how a screen reader announces things, are stated rather than demonstrated, and the metadata lesson says so.

Fixes #22

🤖 Generated with Claude Code

otzpt and others added 2 commits November 9, 2026 21:12
Three courses of five modules each, as static pages under web/, opened in
the browser by the launcher through a small wrapper. They are the one
exception to a course being a CLI program, and docs/writing-a-course.md says
so. The HTML and CSS courses contain no JavaScript.

web/check-course.js compares every demo with its listing and CI runs it. The
exercises are covered by tools/check-teaching-order.py. Each lesson's claims
were measured in Chromium, which corrected three of them.

Menu numbers after C# move up by three, and the smoke test follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The browser pages and the wrappers that opened them are gone. HTML, CSS and
Web JavaScript are now terminal programs in plain C with the same layout as
gui/, built and bundled with the other compiled courses, and none of them
opens a browser.

What only a browser can show is quoted from the Chromium measurements taken
for the earlier version. What C can work out, it computes when the lesson
runs: form encoding, reading UTF-8 bytes as another charset, box and flex
arithmetic, clamp and specificity.

CI builds them with -Werror and walks every module to its SUMMARY.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a58c689-b058-44f5-ad95-9fc51db3d72c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@otzpt
otzpt changed the base branch from feat/launcher-groups to main November 9, 2026 21:41
@otzpt
otzpt merged commit 9f0384a into main Nov 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web courses: HTML, CSS and browser JavaScript

1 participant