HTML index.html Beispiel mit Buttons
Antwort vom```html <!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Buttons Beispiel</title> <style> body { font-family: Arial, sans-serif; padding: 40px; background: #f4f6f8; } h1 { margin-bottom: 20px; } .button-group { display: flex; gap: 12px; flex-wrap: wrap; } button { padding: 12px 20px; border: none; border-radius: 8px; background: #2563eb; color: white; font-size: 16px; cursor: pointer; transition: background 0.2s ease; } button:hover { background: #1d4ed8; } .secondary { background: #6b7280; } .secondary:hover { background: #4b5563; } .success { background: #16a34a; } .success:hover { background: #15803d; } </style> </head> <body> <h1>HTML Buttons Beispiel</h1> <div class="button-group"> <button>Standard</button> <button class="secondary">Abbrechen</button> <button class="success">Speichern</button> </div> </body> </html> ```