Loading…

HTML, CSS & JavaScript Playground

This playground lets you write HTML, CSS and JavaScript side by side and see the result right away. Each language has its own tab, and the preview updates when you run your code.

It is a good place to test a small idea, practise a CSS rule, or check what a few lines of JavaScript actually do — without creating files or installing anything.

Things to try

  • Change the heading text in the HTML tab and run it again.
  • Add a CSS rule, like a new colour or font size, and watch the preview change.
  • Use console.log() in the JavaScript tab to print values while you test.
  • Build a small button that changes some text when you click it.
  • Break something on purpose to see how errors are reported.

How it works

Your three files are joined into one web page and shown in a sandboxed frame. The sandbox keeps your code separate from the rest of BizTechLab, so it cannot read this site's cookies or change this page.

Because of that sandbox, browser storage such as localStorage, cookies and IndexedDB does not work inside this preview. To practise those APIs, use the Web Storage, IndexedDB or Cache API playgrounds instead. A loop guard also stops code that would run forever.

Frequently asked questions

Do I need to install anything?

No. Everything runs inside your browser. Open the page, write your code and press Run.

Is my code saved or sent anywhere?

No. Your code stays in your browser tab and is not uploaded to a server. If you close or reload the tab, your changes are gone, so copy anything you want to keep.

Why doesn't localStorage work in this playground?

The preview runs in a strict sandbox so your code cannot touch the real BizTechLab page. Browsers block storage APIs in that kind of sandbox. The Web Storage playground runs real localStorage, sessionStorage and cookie commands for this reason.

Can I use external libraries?

This playground is built for plain HTML, CSS and JavaScript. It is best for learning the basics and testing small ideas rather than full projects with many dependencies.