day 2 web development series

 

simple Navbar




HTML, CSS CODE:---

only some line of code written for this page

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin: 100px;
        }
        div{
            background-color: rgb(222, 216, 216);
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

       
    </style>
</head>
<body>
    <nav class="navbar">
        <div class="container-fluid">
            <a  class="navbar-brand">Navbar</a>
            <form action="" class="d-flex">
                <input type="search" placeholder="search" class="form-control me-2" aria-label="search">
                <button class="btn btn-outline-success" type="submit">Search</button>
            </form>
        </div>
    </nav>
</body>
</html>

Comments