<!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Mein HTML Dokument</title> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f8fafc; color: #0f172a; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; } .container { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; max-width: 480px; width: 100%; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); } h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; } p { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; } button { background: #0f172a; color: #ffffff; border: none; padding: 10px 18px; border-radius: 6px; font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: opacity 0.15s ease; } button:hover { opacity: 0.9; } </style> </head> <body> <div class="container"> <h1>Hallo Welt!</h1> <p>Bearbeite den HTML- und CSS-Code im Editor links, um die Änderungen direkt hier in der Vorschau zu sehen.</p> <button onclick="handleClick()">Klick mich</button> </div> <script> function handleClick() { alert('JavaScript funktioniert!'); console.log('Button wurde geklickt.'); } </script> </body> </html>