Live Code Editor
Write HTML, CSS & JavaScript with instant preview
Editor
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
padding: 2rem;
background: #f8f9fa;
color: #2d3748;
}
h1 {
color: hsla(238, 43%, 44%, 1);
margin-bottom: 1rem;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border: 1px solid hsla(238, 43%, 44%, 1);
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<h1>Welcome to the Live Editor</h1>
<p>Start editing this code to see live changes in the preview panel.</p>
<p>Try changing colors, content, or adding new elements!</p>
</div>
</div>
</body>
</html>
Preview