Live Code Editor

Live Code Editor Live Code Editor Run Code Reset HTML CSS JavaScript <!DOCTYPE html> <html> <head> <title>My Page</title> </head> <body> <h1>Hello, World!</h1> <p>This is a live code editor example.</p> <button onclick="showMessage()">Click Me</button> </body> </html> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f0f0f0; } h1 { color: #6c5ce7; } p { color: #2d3436; margin: 20px 0; } button { background-color: #6c5ce7; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; } button:hover { background-color: #5b4bd4; } function showMessage() { alert('Hello from the Live Code Editor!'); } Preview Ready to code! Theme: Light Dark