Skip to main content

Web basics

The interface around the model: accessible components, SVG and canvas.

0 of 7 solved · 0 of 170 XPStart: An accessible toggle button
  1. 1An accessible toggle buttonA button that switches on and off must say so to screen readers too, not just with colour.Easy · 8 min · 10 XP
  2. 2Keyboard shortcuts for a promptCtrl+Enter (or Cmd+Enter on a Mac) sends the prompt and Escape clears it. Every other key keeps working as usual.Easy · 10 min · 10 XP
  3. 3Render a model list without injecting HTMLModel names come from outside. Rendering them with textContent stops an odd name from turning into code.Easy · 10 min · 10 XP
  4. 4A sparkline on canvasA small line that shows the latency trend. Scale the values to the canvas height and draw the polyline.Medium · 15 min · 20 XP
  5. 5SVG bar chart of tokens per secondDraw the measured speed of three models in an accessible SVG, each bar proportional to the fastest.Medium · 15 min · 20 XP
  6. 6Accessible tabs with ARIA and the keyboardThree buttons and three panels are not a tab widget until the ARIA roles say so and the arrow keys work.Hard · 25 min · 40 XP
  7. 7Capstone: an accessible table and chart behind one buttonCapstonePuts the track together: render data safely, an SVG chart with its title, and a toggle button with aria-pressed.Hard · 30 min · 60 XP