I have been working on this code, but I am struggling to align the search bar properly within the navigation bar. Can someone please guide me on how to achieve this? I apologize for my lack of coding expertise, as I am new to Information Technology and still learning.
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #8A1414;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 30px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="#news">Movies</a></li>
<li><a href="#contact">TV</a></li>
<li><a href="#about">About</a></li>
<input id="search-bar" name="search" type="text" placeholder="Search...">
<input id="search-button" name="search_submit" type="submit" value="Search">
</ul>
</body>