Educator resources and 25 presenter scripts
Use the Vibe Learning cycle to elicit predictions, observe actual output, repair faults, explain evidence and transfer to a new case. Demonstration timings are rehearsal estimates, not produced videos. Grade objective checks, explanation, visual judgment, accessibility review and independent transfer separately.
1. First web page — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can first web page solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 5, select working example and Reset Example.
HTML creates the heading and button, CSS controls their presentation, and JavaScript registers behavior on the DOM objects.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The heading begins Hello World; clicking Change Title changes it to JavaScript Changed This!.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is "Wrong title". Compare it with "JavaScript Changed This!".
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
2. Headings and paragraphs — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can headings and paragraphs solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 7, select working example and Reset Example.
Headings form a hierarchy of topics; paragraphs contain prose.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The outline proceeds from the page topic through a section and a subsection.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is <h4>Before you begin</h4>. Compare it with <h2>Before you begin</h2>.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
3. Links and images — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can links and images solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 8, select working example and Reset Example.
A link identifies a destination and its accessible text explains the purpose.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The named link targets the figure and the image has a contextual alternative.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is alt="". Compare it with alt="Layered blue mountains beneath a pale sky".
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
4. Labels — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can labels solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 13, select working example and Reset Example.
A label names an individual control through wrapping or a matching for/id pair.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The visible label is associated with the email input through matching identifiers.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is for="wrong". Compare it with for="contact-email".
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
5. Selectors — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can selectors solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 17, select working example and Reset Example.
A type selector matches element names, a class selector matches reusable class tokens, and an ID selector matches a unique identifier.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Only the paragraph with the matching class receives the background; the other paragraph remains unchanged.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is .missing {. Compare it with .highlight {.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
6. Box model — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can box model solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 21, select working example and Reset Example.
The box model separates content from internal padding, border and external margin.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Twenty pixels of internal space separate content from its border; margin creates external separation.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is padding: 0. Compare it with padding: 20px.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
7. Flexbox — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can flexbox solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 24, select working example and Reset Example.
A flex container lays out its direct children as flex items.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The articles become direct flex items in a row and participate in flex sizing.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is display: block. Compare it with display: flex.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
8. CSS Grid — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can css grid solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 25, select working example and Reset Example.
A grid container creates a two-dimensional layout of tracks.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The articles enter an explicit two-column grid; remaining items continue onto another row.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is display:block. Compare it with display:grid.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
9. Media queries — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can media queries solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 27, select working example and Reset Example.
A media query conditionally applies rules according to the environment.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The single-column default gains three columns only when the width condition matches.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is min-width: 1700px. Compare it with min-width: 700px.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
10. Custom properties — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can custom properties solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 31, select working example and Reset Example.
Custom properties store token values and participate in the cascade and inheritance.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The button consumes a named accent token; changing that token can update multiple components consistently.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is --different: #234f9b. Compare it with --accent: #234f9b.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
11. Understanding DOM nodes — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can understanding dom nodes solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 36, select working example and Reset Example.
DOM nodes are objects created by the browser parser.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The root has a text node, a strong element and a comment: three nodes but one element.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is root.children.length. Compare it with root.childNodes.length.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
12. Element selection — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can element selection solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 38, select working example and Reset Example.
querySelector returns one first match; querySelectorAll returns a static NodeList of all matches at the time of the query.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The first .record is Alex and the static collection has two entries.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is querySelectorAll("li"). Compare it with querySelectorAll(".record").
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
13. Changing text — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can changing text solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 41, select working example and Reset Example.
textContent replaces a node’s textual content without parsing the string as HTML.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Clicking the button changes only the status span to Complete.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is textContent = "Pending". Compare it with textContent = "Complete".
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
14. Changing HTML safely — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can changing html safely solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 42, select working example and Reset Example.
Strings from users are data, not trusted HTML.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The image-like string is displayed literally and creates zero image elements.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is .innerHTML = document.querySelector("#message").value. Compare it with .textContent = document.querySelector("#message").value.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
15. Updating classes — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can updating classes solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 44, select working example and Reset Example.
classList changes named CSS classes without overwriting unrelated classes.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
The first click adds selected and aria-pressed=true; the second removes selection.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is String(!active). Compare it with String(active).
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
16. Creating and removing elements — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can creating and removing elements solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 45, select working example and Reset Example.
createElement creates a detached node; append inserts it into a tree.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Add creates one li with a functioning Remove button; Remove deletes that li.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is records.append(remove). Compare it with records.append(item).
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
17. Event propagation — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can event propagation solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 50, select working example and Reset Example.
A bubbling event visits ancestors after its target, while capturing listeners run on the path toward the target.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
One click records capture > target > bubble.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is record("wrong order"). Compare it with record("bubble").
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
18. Buttons and counters — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can buttons and counters solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 51, select working example and Reset Example.
A counter separates state from rendering.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Two increments display 2; Reset returns to 0.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is count += 2. Compare it with count += 1.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
19. Accordions — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can accordions solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 52, select working example and Reset Example.
An accordion disclosure has one button controlling one panel.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Opening sets aria-expanded=true and removes the panel’s hidden state.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is .hidden = open. Compare it with .hidden = !open.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
20. Tabs — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can tabs solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 53, select working example and Reset Example.
Tabs connect a tab list to mutually exclusive panels.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Selecting Practice reveals panel two and gives tab-two the selected entry point.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is i !== index. Compare it with i === index.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
21. Error feedback — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can error feedback solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 58, select working example and Reset Example.
Validation feedback should name the error, connect it to the relevant field and avoid relying on color.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Invalid email receives aria-invalid=true and an associated repair instruction.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is String(valid). Compare it with String(!valid).
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
22. State-driven updates — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can state-driven updates solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 62, select working example and Reset Example.
A render function derives all dependent presentation from state.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
After two additions the count is 2, allowance is zero and Add is disabled.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is state.count > state.limit. Compare it with state.count >= state.limit.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
23. Efficient DOM rendering — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can efficient dom rendering solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 65, select working example and Reset Example.
Efficient rendering starts by reducing unnecessary DOM replacement while preserving correctness.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Rendering creates exactly three items in Alex, Sam, Taylor order.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is fragment.prepend(item). Compare it with fragment.append(item).
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
24. Focus management — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can focus management solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 78, select working example and Reset Example.
After a temporary interface closes, return focus to the logical element that opened it when that element still exists.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Closing the panel hides it and returns focus to the opener.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is document.body.focus(). Compare it with opener.focus().
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
25. Capstone project — prepared engineering demonstration
5 minutes; recording script, not a rendered video
How can capstone project solve a concrete interface problem, and what actual evidence proves the result?
Launch Prepared Demo- 0:00–0:40 Open Learn → lesson 100, select working example and Reset Example.
A capstone combines requirements, state, rendering, validation and testable interactions.
- 0:40–1:20 Read the important HTML, CSS and JavaScript lines. Pause for a prediction.
Adding then completing a task renders Review DOM — Complete with a disabled completion button.
- 1:20–2:10 Run Preview. Inspect the live DOM and run the declared fresh event case where available.
These are actual local DOM operations. Actual computed layout still depends on the supporting browser.
- 2:10–3:10 Load the deliberate fault, predict the mismatch and run its checks.
The altered operation is .complete = false. Compare it with .complete = true.
- 3:10–4:10 Repair the source and run Check My Work from fresh state.
A passing fixture does not prove every viewport or assistive-technology task. State what was actually checked.
- 4:10–5:00 Explain the result, save the draft, export source and Reset Example for the next recording.
Which actual node, state transition or computed value proves this result? Name an independent input and expected output, then explain one remaining manual or compatibility check.
Explain the observed result, independent test and remaining browser limitations.
Module plan 1: Web Fundamentals
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 2: HTML Structure
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 3: HTML Forms
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 4: CSS Fundamentals
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 5: CSS Layout
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 6: Responsive Design
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 7: Advanced CSS
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 8: DOM Fundamentals
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 9: DOM Manipulation
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 10: Browser Events
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 11: Interactive Components
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 12: Forms and Validation
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 13: State and Rendering
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 14: Visual UI Engineering
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 15: Browser APIs
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 16: Accessibility
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 17: Performance
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 18: Debugging
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 19: Professional Development
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Module plan 20: Complete Projects
Begin with the smallest relevant example and ask learners to predict its DOM or visual result. Demonstrate Run Preview and the inspector, then let pairs change one source operation and compare evidence.
Worksheet: record task, input, prediction, actual result, first mismatch, repair, second test and remaining manual review. Discuss why appearance alone cannot establish semantics or complete accessibility.
Rubric: 0 = no evidence; 1 = sample result only; 2 = normal and failure evidence with an accurate explanation; 3 = independent extension plus target-browser, accessibility and publishing review.
Assignment: choose a related project, implement a milestone, verify responsive and keyboard behavior and export a complete source folder. Review the source and observed outcomes rather than counting clicks.
Independent learning objects
- HTML document anatomy
- Element nesting
- Semantic element explorer
- Link builder
- Image attribute inspector
- List structure builder
- Table builder
- Form structure designer
- Input type explorer
- Form validation experiment
- CSS selector tester
- Specificity calculator
- Cascade visualizer
- Inheritance explorer
- Color picker
- Typography playground
- Background designer
- Border and radius editor
- Box model visualizer
- Margin and padding explorer
- Display property comparison
- Positioning laboratory
- Stacking context explorer
- Flexbox container builder
- Flexbox alignment explorer
- CSS Grid builder
- Grid track visualizer
- Responsive breakpoint explorer
- Fluid typography calculator
- Mobile layout tester
- CSS variable editor
- Pseudo-class explorer
- Pseudo-element demonstration
- Transition designer
- Animation timeline
- DOM tree builder
- DOM node relationship explorer
- querySelector explorer
- DOM collection inspector
- Text content editor
- Attribute editor
- ClassList explorer
- Element creation laboratory
- DOM mutation observer
- Event listener explorer
- Mouse event tracker
- Keyboard event tracker
- Form event explorer
- Event bubbling visualizer
- Event capturing visualizer
- Event delegation demonstration
- Counter component
- Accordion builder
- Tab interface builder
- Modal builder
- Navigation menu builder
- Dynamic form builder
- Form validation feedback visualizer
- Application state explorer
- Local storage inspector
- Fetch request demonstration
- Timer execution explorer
- IntersectionObserver demonstration
- ResizeObserver demonstration
- Keyboard focus explorer
- Accessibility structure inspector
- DOM performance benchmark
- CSS debugging detective
- Responsive overflow investigator
- Complete UI component architecture explorer
Exact demonstration starting states and recording contracts
1. First web page — prepared engineering demonstration
Starting screen and source
{
"lesson": 5,
"example": 0,
"viewport": 768
}index.html
<h1 id="title">Hello World</h1> <button id="change">Change Title</button>
styles.css
h1 { color: royalblue; font-size: 32px; }script.js
document.querySelector("#change")
.addEventListener("click", () => {
document.querySelector("#title")
.textContent = "JavaScript Changed This!";
});Expected result
"The heading begins Hello World; clicking Change Title changes it to JavaScript Changed This!."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
2. Headings and paragraphs — prepared engineering demonstration
Starting screen and source
{
"lesson": 7,
"example": 0,
"viewport": 768
}index.html
<h1>Workshop handbook</h1> <h2>Before you begin</h2> <p>Prepare a sample page.</p> <h3>Required files</h3> <p>Keep HTML and CSS together.</p>
styles.css
script.js
Expected result
"The outline proceeds from the page topic through a section and a subsection."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
3. Links and images — prepared engineering demonstration
Starting screen and source
{
"lesson": 8,
"example": 0,
"viewport": 768
}index.html
<a href="#scene">Explore the mountain scene</a><figure id="scene"><img src="assets/landscape.svg" alt="Layered blue mountains beneath a pale sky" width="640" height="400"><figcaption>A local illustrative landscape.</figcaption></figure>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; } img { max-width:100%; height:auto; }script.js
Expected result
"The named link targets the figure and the image has a contextual alternative."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
4. Labels — prepared engineering demonstration
Starting screen and source
{
"lesson": 13,
"example": 0,
"viewport": 768
}index.html
<form><fieldset><legend>Contact details</legend><label for="contact-email">Email address</label><input id="contact-email" name="email" type="email" aria-describedby="email-help"><p id="email-help">Use an address you can access.</p></fieldset></form>
styles.css
label,input { display:block; }script.js
Expected result
"The visible label is associated with the email input through matching identifiers."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
5. Selectors — prepared engineering demonstration
Starting screen and source
{
"lesson": 17,
"example": 0,
"viewport": 768
}index.html
<h1 id="page-title">Selector practice</h1><p class="highlight">A reusable highlight.</p><p>Unselected text.</p>
styles.css
.highlight { background-color: #fff0b3; }script.js
Expected result
"Only the paragraph with the matching class receives the background; the other paragraph remains unchanged."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
6. Box model — prepared engineering demonstration
Starting screen and source
{
"lesson": 21,
"example": 0,
"viewport": 768
}index.html
<div class="box">A box with content</div>
styles.css
.box { width: 200px; padding: 20px; border: 2px solid #234f9b; margin: 16px; }script.js
Expected result
"Twenty pixels of internal space separate content from its border; margin creates external separation."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
7. Flexbox — prepared engineering demonstration
Starting screen and source
{
"lesson": 24,
"example": 0,
"viewport": 768
}index.html
<div class="layout"><article>Discover</article><article>Experiment</article><article>Build</article></div>
styles.css
.layout { display: flex; flex-direction: row; gap: 1rem; } article { padding: 1rem; background:#e8eef7; }script.js
Expected result
"The articles become direct flex items in a row and participate in flex sizing."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
8. CSS Grid — prepared engineering demonstration
Starting screen and source
{
"lesson": 25,
"example": 0,
"viewport": 768
}index.html
<div class="layout"><article>Discover</article><article>Experiment</article><article>Build</article></div>
styles.css
.layout { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; } article { padding:1rem; background:#e8eef7; }script.js
Expected result
"The articles enter an explicit two-column grid; remaining items continue onto another row."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
9. Media queries — prepared engineering demonstration
Starting screen and source
{
"lesson": 27,
"example": 0,
"viewport": 768
}index.html
<div class="layout"><article>Discover</article><article>Experiment</article><article>Build</article></div>
styles.css
.layout { display:grid; grid-template-columns:1fr; gap:1rem; } @media (min-width: 700px) { .layout { grid-template-columns:1fr 1fr 1fr; } }script.js
Expected result
"The single-column default gains three columns only when the width condition matches."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
10. Custom properties — prepared engineering demonstration
Starting screen and source
{
"lesson": 31,
"example": 0,
"viewport": 768
}index.html
<button class="action">Preview changes</button>
styles.css
:root { --accent: #234f9b; } .action { color:white; background:var(--accent); padding:.75rem 1rem; }script.js
Expected result
"The button consumes a named accent token; changing that token can update multiple components consistently."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
11. Understanding DOM nodes — prepared engineering demonstration
Starting screen and source
{
"lesson": 36,
"example": 0,
"viewport": 768
}index.html
<div id="root">Hello <strong>DOM</strong><!-- note --></div><button id="inspect">Count nodes</button><output id="result">Not inspected</output>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#inspect").addEventListener("click", () => {
const root = document.querySelector("#root");
document.querySelector("#result").textContent = root.childNodes.length + " nodes / " + root.children.length + " elements";
});Expected result
"The root has a text node, a strong element and a comment: three nodes but one element."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
12. Element selection — prepared engineering demonstration
Starting screen and source
{
"lesson": 38,
"example": 0,
"viewport": 768
}index.html
<ul><li class="record">Alex</li><li class="record">Sam</li><li>Taylor</li></ul><button id="select">Inspect selection</button><output id="result">Not inspected</output>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#select").addEventListener("click", () => {
const first = document.querySelector(".record");
const all = document.querySelectorAll(".record");
document.querySelector("#result").textContent = first.textContent + " / " + all.length;
});Expected result
"The first .record is Alex and the static collection has two entries."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
13. Changing text — prepared engineering demonstration
Starting screen and source
{
"lesson": 41,
"example": 0,
"viewport": 768
}index.html
<p>Status: <span id="status">Pending</span></p><button id="update">Complete task</button>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#update").addEventListener("click", () => {
document.querySelector("#status").textContent = "Complete";
});Expected result
"Clicking the button changes only the status span to Complete."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
14. Changing HTML safely — prepared engineering demonstration
Starting screen and source
{
"lesson": 42,
"example": 0,
"viewport": 768
}index.html
<label>Message<input id="message" value="<img src=x onerror=alert(1)>"></label><button id="show">Show safely</button><p id="result"></p>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#show").addEventListener("click", () => {
document.querySelector("#result").textContent = document.querySelector("#message").value;
});Expected result
"The image-like string is displayed literally and creates zero image elements."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
15. Updating classes — prepared engineering demonstration
Starting screen and source
{
"lesson": 44,
"example": 0,
"viewport": 768
}index.html
<button id="toggle" aria-pressed="false">Select card</button><article id="card" class="card">Reusable record</article>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; } .selected { border-color:#155ec4; background:#dceaff; }script.js
document.querySelector("#toggle").addEventListener("click", event => {
const active = document.querySelector("#card").classList.toggle("selected");
event.currentTarget.setAttribute("aria-pressed", String(active));
});Expected result
"The first click adds selected and aria-pressed=true; the second removes selection."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
16. Creating and removing elements — prepared engineering demonstration
Starting screen and source
{
"lesson": 45,
"example": 0,
"viewport": 768
}index.html
<button id="add">Add record</button><ul id="records"></ul>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
const records = document.querySelector("#records");
document.querySelector("#add").addEventListener("click", () => {
const item = document.createElement("li");
item.textContent = "New record ";
const remove = document.createElement("button"); remove.textContent = "Remove"; remove.dataset.remove = "true";
item.append(remove); records.append(item);
});
records.addEventListener("click", event => { if (event.target.matches("button[data-remove]")) event.target.closest("li").remove(); });Expected result
"Add creates one li with a functioning Remove button; Remove deletes that li."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
17. Event propagation — prepared engineering demonstration
Starting screen and source
{
"lesson": 50,
"example": 0,
"viewport": 768
}index.html
<div id="outer"><button id="inner">Activate nested button</button></div><output id="result"></output>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
const order = [];
function record(label) { order.push(label); document.querySelector("#result").textContent = order.join(" > "); }
document.querySelector("#outer").addEventListener("click", () => record("capture"), true);
document.querySelector("#inner").addEventListener("click", () => record("target"));
document.querySelector("#outer").addEventListener("click", () => record("bubble"));Expected result
"One click records capture > target > bubble."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
18. Buttons and counters — prepared engineering demonstration
Starting screen and source
{
"lesson": 51,
"example": 0,
"viewport": 768
}index.html
<button id="increment" type="button">Add one</button><button id="reset" type="button">Reset</button><output id="count">0</output>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
let count = 0;
function render() { document.querySelector("#count").textContent = String(count); }
document.querySelector("#increment").addEventListener("click", () => { count += 1; render(); });
document.querySelector("#reset").addEventListener("click", () => { count = 0; render(); });Expected result
"Two increments display 2; Reset returns to 0."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
19. Accordions — prepared engineering demonstration
Starting screen and source
{
"lesson": 52,
"example": 0,
"viewport": 768
}index.html
<h2><button id="toggle" aria-expanded="false" aria-controls="panel">What is the DOM?</button></h2><div id="panel" hidden>The browser document object tree.</div>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#toggle").addEventListener("click", event => {
const open = event.currentTarget.getAttribute("aria-expanded") !== "true";
event.currentTarget.setAttribute("aria-expanded", String(open));
document.querySelector("#panel").hidden = !open;
});Expected result
"Opening sets aria-expanded=true and removes the panel\u2019s hidden state."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
20. Tabs — prepared engineering demonstration
Starting screen and source
{
"lesson": 53,
"example": 0,
"viewport": 768
}index.html
<div role="tablist" aria-label="Learning views"><button id="tab-one" role="tab" aria-selected="true" aria-controls="one" tabindex="0">Learn</button><button id="tab-two" role="tab" aria-selected="false" aria-controls="two" tabindex="-1">Practice</button></div><section id="one" role="tabpanel" aria-labelledby="tab-one">Read the explanation.</section><section id="two" role="tabpanel" aria-labelledby="tab-two" hidden>Try the experiment.</section>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
const tabs = [...document.querySelectorAll("[role=tab]")];
function select(index) { tabs.forEach((tab, i) => { const active = i === index; tab.setAttribute("aria-selected", String(active)); tab.tabIndex = active ? 0 : -1; document.getElementById(tab.getAttribute("aria-controls")).hidden = !active; }); tabs[index].focus(); }
tabs.forEach((tab, i) => { tab.addEventListener("click", () => select(i)); tab.addEventListener("keydown", event => { if (["ArrowRight", "ArrowLeft"].includes(event.key)) { event.preventDefault(); select((i + (event.key === "ArrowRight" ? 1 : tabs.length - 1)) % tabs.length); } }); });Expected result
"Selecting Practice reveals panel two and gives tab-two the selected entry point."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
21. Error feedback — prepared engineering demonstration
Starting screen and source
{
"lesson": 58,
"example": 0,
"viewport": 768
}index.html
<form id="form" novalidate><label>Email<input id="email" aria-describedby="email-error" value="invalid"></label><p id="email-error" aria-live="polite"></p><button>Check email</button></form>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#form").addEventListener("submit", event => { event.preventDefault(); const field = document.querySelector("#email"); const valid = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(field.value); field.setAttribute("aria-invalid", String(!valid)); document.querySelector("#email-error").textContent = valid ? "Email format accepted" : "Enter an email such as alex@example.com"; });Expected result
"Invalid email receives aria-invalid=true and an associated repair instruction."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
22. State-driven updates — prepared engineering demonstration
Starting screen and source
{
"lesson": 62,
"example": 0,
"viewport": 768
}index.html
<button id="add">Add</button><output id="count">0</output><output id="remaining">2 remaining</output>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
const state = {count: 0, limit: 2};
function render() { document.querySelector("#count").textContent = String(state.count); document.querySelector("#remaining").textContent = (state.limit - state.count) + " remaining"; document.querySelector("#add").disabled = state.count >= state.limit; }
document.querySelector("#add").addEventListener("click", () => { state.count += 1; render(); });
render();Expected result
"After two additions the count is 2, allowance is zero and Add is disabled."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
23. Efficient DOM rendering — prepared engineering demonstration
Starting screen and source
{
"lesson": 65,
"example": 0,
"viewport": 768
}index.html
<button id="render">Render records</button><ul id="list"></ul>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
document.querySelector("#render").addEventListener("click", () => { const fragment = document.createDocumentFragment(); ["Alex", "Sam", "Taylor"].forEach(name => { const item = document.createElement("li"); item.textContent = name; fragment.append(item); }); document.querySelector("#list").replaceChildren(fragment); });Expected result
"Rendering creates exactly three items in Alex, Sam, Taylor order."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
24. Focus management — prepared engineering demonstration
Starting screen and source
{
"lesson": 78,
"example": 0,
"viewport": 768
}index.html
<button id="open">Open review panel</button><section id="panel" hidden><h2>Review</h2><button id="close">Close panel</button></section>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
let opener;
document.querySelector("#open").addEventListener("click", event => { opener = event.currentTarget; document.querySelector("#panel").hidden = false; document.querySelector("#close").focus(); });
document.querySelector("#close").addEventListener("click", () => { document.querySelector("#panel").hidden = true; if (opener?.isConnected) opener.focus(); });Expected result
"Closing the panel hides it and returns focus to the opener."
Reset
Reset Example after confirmation restores the authored files and fresh preview.
25. Capstone project — prepared engineering demonstration
Starting screen and source
{
"lesson": 100,
"example": 0,
"viewport": 768
}index.html
<main><h1>Independent task board</h1><form id="form"><label>Task<input id="task" value="Review DOM"></label><button>Add task</button></form><p id="message" role="status"></p><ul id="tasks"></ul></main>
styles.css
body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }script.js
const tasks = [];
function render() { const list = document.querySelector("#tasks"); list.replaceChildren(); tasks.forEach((task, index) => { const item = document.createElement("li"); const label = document.createElement("span"); label.textContent = task.text + (task.complete ? " — Complete" : " — Pending"); const button = document.createElement("button"); button.textContent = "Complete"; button.dataset.index = index; button.disabled = task.complete; item.append(label, button); list.append(item); }); }
document.querySelector("#form").addEventListener("submit", event => { event.preventDefault(); const text = document.querySelector("#task").value.trim(); if (!text) { document.querySelector("#message").textContent = "Enter a task"; return; } tasks.push({text, complete: false}); render(); document.querySelector("#message").textContent = "Task added"; });
document.querySelector("#tasks").addEventListener("click", event => { const button = event.target.closest("button[data-index]"); if (!button) return; tasks[Number(button.dataset.index)].complete = true; render(); });Expected result
"Adding then completing a task renders Review DOM \u2014 Complete with a disabled completion button."
Reset
Reset Example after confirmation restores the authored files and fresh preview.