WP2
WP2
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
text-align: center;
background-color: #f4f4f4;
header {
background-color: #333;
color: white;
padding: 20px;
font-size: 24px;
font-weight: bold;
nav {
justify-content: center;
background-color: #444;
padding: 30px;
nav a {
color: white;
text-decoration: none;
margin: 0 20px;
font-size: 18px;
nav a:hover {
color: #f4f4f4;
}
footer {
background-color: #333; }
position: fixed; }
bottom: 0; </head>
} <body>
.login-container { <header>
} <a href="#">Contact</a>
.login-container h2 { </nav>
} <h2>Login</h2>
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
OUTPUT:
CONCLUSION:
We learned how to create a basic and responsive web page using HTML5 different attributes
and elements.