Live HTML Editor
Write your code and open the preview in a clean, separate view.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Page</title> <style> body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #F0F0F0; color: #333; padding: 2rem; text-align: center; } h1 { color: #6699CC; } p { color: #555; } .container { max-width: 600px; margin: auto; background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } button { background-color: #FFB347; color: #333; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 1rem; transition: transform 0.2s; } button:hover { transform: scale(1.05); } </style> </head> <body> <div class="container"> <h1>Hello, World!</h1> <p>This is your live HTML preview. Start editing the code to see the magic happen.</p> <button onclick="alert('It works!')">Click me</button> </div> </body> </html>
Open File
Copy Code
Preview