An interactive, browser-based HTML editor that allows users to write, edit, and preview HTML, CSS, and JavaScript in real time.
Live HTML Editor provides a lightweight development environment inside the browser, enabling instant experimentation with frontend code using a modular structure and a single-file distributable build.
- Download
dist/live-html-editor.html - Open in any browser
- Start coding immediately
- Works offline.
- No installation required.
- Clone the repository
- Open:
src/index.html
-
Edit files in
src/ -
Build when needed:
python scripts/build.py
Recommended for learning and development.
- Live editing of HTML, CSS, and JavaScript
- Instant preview using iframe sandbox
- Toggle JS and CSS editors
- Export as single HTML file
- Import external files
- Adjustable font size and word wrap
- Dark/light mode
- Reset/clear editors
- Floating toolbar
- Lightweight and dependency-free
live-html-editor/
│
├── index.html # Entry / landing page (GitHub Pages)
│
├── src/ # Development source code
│ ├── index.html
│ ├── script.js
│ └── style.css
│
├── dist/ # Final build (for users)
│ └── live-html-editor.html # Single-file app
│
├── scripts/ # Build tools
│ └── build.py
│
├── README.md
├── LICENSE
└── .gitignore
Run:
python scripts/build.py
This will:
- Combine HTML, CSS, and JavaScript
- Bundle into a single file
- Output to
dist/
This project uses two modes:
- Modular structure
- Local server support
- Easy to extend
- Single HTML file
- Fully portable
- Works offline
- HTML5
- CSS3
- Vanilla JavaScript
- Python (tooling and build script only)
- Not a full IDE
- No debugging tools
- No collaboration features
- Browser-dependent behavior
Try it here: https://akpandey-dev.github.io/live-html-editor
- Open for learning and experimentation
- Bugs may exist
- Improvements are welcome
Open-source for educational and experimental use.