The Split-Pane View
| Left Pane | Right Pane |
|---|---|
| HTML/CSS/JS source code | Live rendered output |
| Editable directly | Updates when code changes |
| AI writes and modifies here | Sandboxed iframe |
What You Can Build
Landing Page Mockups
Full-page UI prototypes with hero sections, feature lists, CTAs, and pricing tables. Specify product name, color scheme, and key sections.
Data Visualizations
Interactive charts using Chart.js, D3.js, or plain SVG. Bar charts, line charts, pie charts, scatter plots, and more.
UI Components
Buttons, modals, navigation bars, form layouts, cards, accordions, and any other reusable interface element.
Interactive Demos
Components with JavaScript logic — toggle menus, filterable tables, tab interfaces, sliders, calculators.
Styled Tables and Reports
HTML tables with rich formatting, colors, icons, and layout that CSV cannot provide.
Animations and CSS Demos
CSS and JavaScript animations — loading spinners, transitions, hover effects, gradient backgrounds.
Prompts to Try
Landing Pages
- “Create a dark-themed landing page for a SaaS product called Flux with a hero section, three feature highlights, and a pricing table with Free and Pro tiers. Use purple accent colors.”
- “Build a product landing page for a mobile fitness app. Include a hero placeholder, feature bullets, and a download CTA button.”
- “Make a professional consulting firm homepage with a header, services section, team bios, and a contact form.”
Data Visualizations
- “Build an interactive bar chart using Chart.js showing monthly revenue for January through June: 51k, 63k, 68k”
- “Create a D3.js pie chart showing browser market share: Chrome 65%, Safari 18%, Firefox 9%, Edge 5%, Other 3%”
- “Make an animated line chart tracking stock price over 12 months. Use a dark background with a neon green line.”
- “Build a filterable data table for a product catalog with columns for name, category, price, and rating”
UI Components
- “Create a responsive pricing table with three plans: Starter, Pro, and Enterprise. Highlight the Pro plan with a border and ‘Most Popular’ badge.”
- “Build a modal dialog with a header, body text, and Cancel / Confirm buttons. Animate it on open and close.”
- “Make a navigation bar with a logo placeholder, five nav links, and a sign-in button. Collapse to a hamburger menu on mobile.”
Animations and Interactive Demos
- “Create an animated CSS loading spinner centered on the page”
- “Build an animated gradient background that slowly cycles through three colors”
- “Make a JavaScript-powered to-do list with add, complete, and delete functionality”
- “Create an interactive quiz with three multiple-choice questions and a score at the end”
Iterating on the Output
The HTML canvas works best as an iterative workflow:Generate the initial version
Send a detailed first prompt. Include the purpose, key sections, and style preferences (color scheme, theme, layout).
Review the rendered output
Look at the right pane. Identify what needs to change — layout, colors, content, interactivity.
Send targeted follow-up prompts
Refine specific elements:
- “Make the primary button blue”
- “Increase the hero headline font size to 64px”
- “Add a footer with copyright text and three links”
- “Make the layout responsive for mobile screens”
- “Replace the placeholder image with a CSS gradient background”
- “Change the font to Inter or system sans-serif”
Using External Libraries
The AI can include popular CDN-hosted libraries in the HTML:| Library | Use For |
|---|---|
| Chart.js | Bar, line, pie, doughnut, radar charts |
| D3.js | Complex, custom data visualizations |
| Tailwind CSS | Utility-first styling |
| Alpine.js | Lightweight JavaScript interactivity |
| Animate.css | CSS animation utility classes |
| Lucide Icons | Clean SVG icon set |
| Marked.js | Render Markdown in HTML |
Sandbox Restrictions
For visualizations that need data, include the data directly in your prompt so ZeroTwo hardcodes it into the HTML.Exporting HTML
Click Export in the canvas toolbar and select Copy HTML source. This copies the complete HTML document to your clipboard. You can then:- Save it as a local
.htmlfile and open it in any browser - Drop it into a static hosting service (Netlify Drop, GitHub Pages, Vercel)
- Embed it in a web application
- Use it as the starting point for a React or Vue component
The copied HTML is fully self-contained — all CSS and JavaScript is either inline or sourced from CDN links in the
<head>. No server-side dependencies.Tips for Best Results
Related Pages
Canvas Overview
All 7 canvas editor types and how to activate Canvas Mode.
Code Editor
Write and edit code without a live preview pane.
Export Canvas
Copy your HTML source for use outside ZeroTwo.
Troubleshooting
Fix common HTML canvas issues.

