Facebook HTML & CSS CODE


HTML CODE



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Facebook Login</title>
    <link rel="stylesheet" href="css.css">
</head>
<body>
    <div class="login-container">
        <h2>Facebook</h2>
        <p>Log in to Facebook</p>
        <form action="#">
            <input type="text" placeholder="Email or Phone" required>
            <input type="password" placeholder="Password" required>
            <button type="submit">Log In</button>
            <a href="#">Forgotten password?</a>
        </form>
        <hr>
        <button class="create-account">Create New Account</button>
    </div>
</body>
</html>





******* CSS CODE ----------------


body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

h2 {
    color: #1877f2;
    font-size: 32px;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    color: #606770;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #1877f2;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #166fe5;
}

.create-account {
    background-color: #42b72a;
    margin-top: 10px;
}

.create-account:hover {
    background-color: #36a420;
}

a {
    display: block;
    margin: 10px 0;
    color: #1877f2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    margin: 15px 0;
    border: none;
    height: 1px;
    background-color: #ddd;
}

Thanks for contact me

Post a Comment (0)
Previous Post Next Post