Use this free HTML, CSS, and JavaScript editor to write front-end code and preview the result in the same browser tab. The workspace provides separate HTML, CSS, and JavaScript editors, a live preview, and controls for changing the editor theme and preview width. It is designed for quick experiments, learning, and testing small front-end examples without setting up a local project.
What is included in the playground?
- Three code tabs: edit HTML markup, CSS styles, and JavaScript behavior separately.
- CodeMirror editor: syntax-aware editing with line numbers, code folding, bracket matching, autocomplete, indentation, and line wrapping.
- Live preview: the preview refreshes shortly after you stop editing, with a manual refresh control when needed.
- Responsive preview sizes: switch between desktop, tablet, and mobile-width previews.
- Workspace controls: copy or clear the active tab, reset the starter project, restore the browser-saved workspace, and download a combined HTML file.
- Editor layout: choose a light or dark theme, resize the editor/preview split, and expand the editor or preview.
- Error feedback: see captured JavaScript runtime errors and console errors reported by the preview frame.
How to use the HTML, CSS, and JavaScript editor
- Open the HTML tab and add the elements you want on the page.
- Switch to CSS and style those elements. The preview uses the HTML and CSS together.
- Open the JavaScript tab to add event handlers or other browser-side behavior.
- Watch the preview update after a short pause, or select Refresh to run it again immediately.
- Use the desktop, tablet, and mobile controls to inspect the page at different preview widths.
- Copy the active tab, clear it, restore the saved workspace, or download the combined HTML document when you are ready.
What happens when your code runs?
The preview is rendered in a separate sandboxed iframe rather than inside the main 08 Tech Group page. The frame has scripts enabled so your JavaScript can run, but it does not share the parent page's origin or DOM. A restrictive Content Security Policy blocks network connections and external resource loading from the preview. This is useful for isolated front-end experiments, but it also means examples that depend on remote APIs, CDN scripts, external fonts, or remote images will not behave like they do on a fully configured website.
The preview reports JavaScript errors and rejected promises, and it captures calls to console.error. It is not a full browser developer-tools console, debugger, or production runtime.
Does the editor save my code?
The workspace is automatically saved in your browser's local storage. This keeps your current HTML, CSS, JavaScript, selected tab, theme, and preview device available in the same browser profile. The code is not uploaded to an account or cloud project by this editor. Clearing browser site data or using a different browser/device can remove or make the saved workspace unavailable.
Download your project as HTML
The Download action creates one self-contained HTML document with your current markup, styles, and JavaScript placed into the appropriate parts of the file. It is a convenient export for a small demo or a standalone experiment. It is not a multi-file project, package manager, build system, or deployment workflow.
Important safety note: the live preview runs inside the sandboxed frame, but the downloaded HTML file is a normal document and does not retain the preview frame's sandbox restrictions. Only download and open code you wrote or have reviewed. Do not run untrusted HTML or JavaScript just because it was previewed in this editor.
What this playground is—and is not
This tool is a lightweight front-end scratchpad. It does not provide npm package installation, React/Vue project templates, a Node.js server, a backend runtime, multi-file asset management, collaborative editing, cloud project sharing, or one-click hosting. It is best for small HTML/CSS/JavaScript examples, layout experiments, DOM interactions, and quick demonstrations.
For related tasks, use the Code Minifier for basic source cleanup, Text Diff to compare revisions, or the JSON Formatter to inspect structured data.
Privacy and limitations
The editor stores the workspace locally in your browser. The preview's sandbox and Content Security Policy restrict access to the parent page and block network connections from the running code. This is an isolation measure, not a guarantee that arbitrary code is safe in every environment. Do not paste secrets or execute code you do not trust. Browser storage can be cleared by the browser or device, and downloaded HTML runs outside the preview sandbox.
