$ preview --html

html live preview.

Write HTML, CSS, and JavaScript and see the rendered output in real-time. 100% client-side.

HTML
CSS
JavaScript
preview
The HTML preview tool renders your code in a sandboxed iframe inside your browser. You type HTML, CSS, and JavaScript on the left, and the result updates live on the right.
No, everything runs locally in your browser. The preview uses a sandboxed iframe, meaning your code never leaves your computer.
Yes, JavaScript code inside <script> tags executes in the preview iframe. This is useful for prototyping interactive components and testing logic.

learn more in our detailed guide.

→ read the guide