Build a Product Feature Comparison Matrix with Checkmarks in One HTML File

A prompt that produces an accessible, filterable feature comparison table for four competing products, with sticky headers, symbol-plus-text cells and a show-only-differences toggle.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and information designer who builds accessible data tables.

Build a single-page infographic called Whiteboard Tools Compared. It compares four fictional collaborative whiteboard apps (Driftboard, Canvasly, Plotwise, Sketchnest) across 17 features grouped into Collaboration, Planning, Security, Integrations and Support. Each cell is Yes, No, Partial with a short note (for example Enterprise only or Read-only), or a limit value such as 30 days.

Rules:
1. Put the table in a scrollable panel. The header row stays fixed at the top and the feature-name column stays fixed at the left, so it reads well at 360px wide.
2. Never rely on color alone. Every cell shows a symbol (check, cross, half circle, diamond) plus visible text, and a legend explains all four.
3. Add a Show only differences toggle button with aria-pressed and a visible On or Off label, plus category filter chips. A polite live region reports how many features are shown and how many identical rows are hidden.
4. Product headers show the price and a coverage score. Clicking or pressing Enter on a product highlights its column.
5. Use a calm palette on an off-white background, a clear type scale, visible focus outlines, and disable transitions under prefers-reduced-motion.
6. Build the table from a JavaScript data array, with no external libraries, fonts or network calls.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Whiteboard Tools Compared, a filterable feature matrix for four fictional apps.

Scroll the table on a phone and the header row and feature column stay pinned. Turn on Show only differences to hide rows where all four tools match, or tap a category chip to narrow the view. Click any product name to highlight its column. Each cell pairs a symbol with text (Yes, No, a partial note or a limit), so it reads clearly without color.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Using position: sticky on both the header row and the first column keeps labels visible inside one scroll panel, so small screens stay readable.
  • Every value has a symbol, visible text and screen-reader-only context, so the meaning never depends on color.
  • Building rows from one data array makes the differences filter, scores and status counts derive automatically and stay consistent.

Paste into ChatGPT, Claude or Gemini. Save the returned code as comparison.html and open it in any browser, or view it in the chat's preview or canvas panel. Swap the data array to compare your own products.

Common edits

  • Replace the products and features array with your own competitors, prices and notes. The filter and scores update automatically.
  • Add a highlight for your own product column by default, or add a Partial counts as No switch to make the scoring stricter.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics