HTML Preview
Paste HTML and CSS — the result updates as you type and renders in a fully isolated iframe with no access to the html.com.ua page.
HTML
CSS
Preview
Use cases
- Quickly checking a piece of HTML markup without creating a file
- Showing a code snippet to a colleague or client
- Checking how a CSS style looks before adding it to a project
FAQ
Does JavaScript run in the preview?
No. The iframe is deliberately configured with the most restrictive sandbox possible, with no scripts allowed — it's a pure HTML/CSS preview, no JS execution of any kind.
Does the preview have access to the site's cookies or localStorage?
No. A sandbox without allow-same-origin gives the iframe its own unique isolated origin, which cannot read html.com.ua's data.
How is this different from the HTML Editor?
HTML Preview is for quickly looking at a snippet: paste HTML and CSS into separate fields and see the result right away. HTML Editor is for writing a whole .html page — with syntax highlighting, formatting, minifying, opening and saving files. The “Open in HTML Editor” button moves your HTML and CSS there as one page.