Basic document
<!DOCTYPE html>
<html>
<head><title>Demo</title></head>
<body>
<h1>Hello</h1>
<p>Welcome to the page.</p>
</body>
</html>The HTML Viewer renders your HTML markup as a live preview so you can see the rendered page beside its source. This is handy for checking a snippet, previewing email or template markup, or understanding how elements, attributes, and inline styles combine into a visual result. HTML (HyperText Markup Language) is the standard markup language of the web, structuring content with elements like headings, paragraphs, lists, links, and tables, and is styled with CSS and made interactive with JavaScript.
The preview is generated entirely in your browser, so your markup is never uploaded or stored on a server. Paste a fragment or a full document and immediately see how it displays, then adjust tags or styles and re-render. It is a quick way to validate layout and structure, experiment with markup, or confirm that generated HTML looks correct before embedding it into a larger page or sending it onward.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
<!DOCTYPE html>
<html>
<head><title>Demo</title></head>
<body>
<h1>Hello</h1>
<p>Welcome to the page.</p>
</body>
</html><ul>
<li><a href="https://example.com">Example</a></li>
<li>Plain item</li>
</ul><table border="1" style="border-collapse:collapse">
<tr><th>Name</th><th>Score</th></tr>
<tr><td>Ada</td><td>95</td></tr>
</table><form>
<label for="email">Email</label>
<input id="email" type="email" placeholder="[email protected]">
<button type="submit">Sign up</button>
</form><figure>
<img src="https://placehold.co/120" alt="Placeholder" width="120">
<figcaption>A sample image</figcaption>
</figure><header><h1>Site</h1></header>
<nav><a href="#a">Home</a> | <a href="#b">About</a></nav>
<main>
<article>
<h2>Post title</h2>
<p>Body text.</p>
</article>
</main>
<footer>© 2026</footer><p>Use <strong>bold</strong>, <em>italic</em>, and
<code>inline code</code>. Quote: <q>be concise</q>.</p>
<pre><code>const x = 1;</code></pre><ol>
<li>First</li>
<li>Second</li>
</ol>
<dl>
<dt>HTML</dt>
<dd>Markup language of the web.</dd>
</dl><details>
<summary>More info</summary>
<p style="color:#2563eb">Hidden until expanded.</p>
</details>
<p>Highlight: <mark>important</mark> text.</p>The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste an HTML fragment or full document into the source pane
A live rendered preview appears beside the markup
Edit tags, attributes, or inline styles and re-render to see changes
Snippets, email markup, or template output before embedding
How elements, attributes, and inline CSS combine visually
Layout and structure of generated or hand-written HTML
Rendering happens entirely in your browser
Your markup is never uploaded or stored on a server
Add inline styles to test visual tweaks instantly
Use it to confirm generated HTML looks right before sending it on