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
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
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 like this
Build an Accessible Market Share Donut Chart Infographic With Legend in HTML
A prompt that builds a single-file SVG donut chart of competitor market share, with a ranked legend, keyboard navigation, tap focus and an automatic Other bucket.
Build an Animated Top-10 Bar Chart Race Infographic in One HTML File
You get a single HTML file with an animated top-10 bar chart race. It has play, pause and a year scrubber, smooth rank swaps, and a static final-ranking view for users who prefer reduced motion.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File
Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.