|
|
| Line 1: |
Line 1: |
| <syntaxhighlight lang="html"><!DOCTYPE html>
| | Dies ist eine Beispiel-Seite. |
| <html lang="de">
| |
| <head>
| |
| <meta charset="UTF-8">
| |
| <title>Mini Demo</title>
| |
| <link rel="stylesheet" href="style.css">
| |
| </head>
| |
| <body>
| |
| | |
| <div class="card">
| |
| <h1>Hallo 👋</h1>
| |
| <p id="text">Klick auf den Button!</p>
| |
| <button onclick="changeText()">Klick mich</button>
| |
| </div>
| |
| | |
| <script src="script.js"></script>
| |
| </body>
| |
| </html></syntaxhighlight><syntaxhighlight lang="css">
| |
| body {
| |
| font-family: Arial, sans-serif;
| |
| background: #f0f2f5;
| |
| display: flex;
| |
| justify-content: center;
| |
| align-items: center;
| |
| height: 100vh;
| |
| margin: 0;
| |
| }
| |
| | |
| .card {
| |
| background: white;
| |
| padding: 30px;
| |
| border-radius: 12px;
| |
| box-shadow: 0 5px 20px rgba(0,0,0,0.1);
| |
| text-align: center;
| |
| }
| |
| | |
| button {
| |
| margin-top: 15px;
| |
| padding: 10px 20px;
| |
| border: none;
| |
| background: #4CAF50;
| |
| color: white;
| |
| border-radius: 8px;
| |
| cursor: pointer;
| |
| font-size: 16px;
| |
| }
| |
| | |
| button:hover {
| |
| background: #45a049;
| |
| }
| |
| </syntaxhighlight><syntaxhighlight lang="javascript">
| |
| function changeText() {
| |
| const text = document.getElementById("text");
| |
| text.innerHTML = "Du hast den Button geklickt 🎉";
| |
| }
| |
| </syntaxhighlight>
| |
Revision as of 07:54, 10 April 2026
Dies ist eine Beispiel-Seite.