You are on page 1of 2

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #f2f2f2;
}

header h1 a {
font-size: 36px;
text-decoration: none;
color: #333;
}

header nav ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

header nav a {
display: block;
padding: 10px 20px;
font-size: 18px;
text-decoration: none;
color: #333;
}

header form {
display: flex;
align-items: center;
}

header input[type="text"] {
padding: 10px 20px;
font-size: 18px;
border: 1px solid #ccc;
border-radius: 20px 0 0 20px;
}

header button[type="submit"] {
padding: 10px 20px;
font-size: 18px;
background-color: #333;
color: #fff;
border: none;
border-radius: 0 20px 20px 0;
}
</style>
</head>
<body>

</body>
<header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Hotels</a></li>
<li><a href="#">Restaurants</a></li>
<li><a href="#">Things to do</a></li>
<li><a href="#">Forum</a></li>
</ul>
</nav>
<h1><a href="#">TripAdvisor</a></h1>
<form action="#">
<input type="text" placeholder="Search">
<button type="submit">Go</button>
</form>
</header>

You might also like