<!DOCTYPE html>
<html>
<head>
<title>Mein Lieblingstier</title>
</head>
<body>
<!-- Hier kommt der Inhalt der Webseite hin -->
</body>
</html>
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Einfache Menüleiste</title>
</head>
<body>
<div>
<a href="#home-link" style="display: inline-block; margin-right: 10px;">Home</a>
<a href="#about-link" style="display: inline-block; margin-right: 10px;">Über Uns</a>
<a href="#services-link" style="display: inline-block; margin-right: 10px;">Leistungen</a>
<a href="#contact-link" style="display: inline-block;">Kontakt</a>
</div>
<div>
<h1>Willkommen!</h1>
<p>Hier kann Inhalt eingefügt werden.</p>
</div>
</body>
</html>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<?php
if($_SERVER['REQUEST_METHOD'] === 'POST'){
$username = $_POST['username'];
$password = $_POST['password'];
if($username == "Bernd" && $password == "rotkohl55"){
echo "Hallo Bernd";
}else{
echo "Ungültige Zugangsdaten";
}
}
?>
<html>
<head>
<title>Mein erstes Login-Formular</title>
</head>
<body>
<form method="post" action="">
Benutzername: <input type="text" name="username"><br>
Passwort: <input type="password" name="password"><br>
<input type="submit" value="Einloggen">
</form>
</body>
</html>
<?php
$heute = date("Y-m-d");
echo "Heute ist: $heute<br>";
if ($heute < "2025-02-02") {
echo "Heute ist vor dem 02.02.2025";
} else {
echo "Heute ist am oder nach dem 02.02.2025";
}
?>