Can someone explain why the input field is not aligning in the center?
I am new to web development and need some assistance.
<input type="text" id="search_bar" class="form-control" placeholder="Search" align="center">
In my CSS, I've tried using "float:center;" multiple times with no success in centering the input field.
Here's the code:
<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css">
/* CSS styles here */
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-expand-lg navbar-light">
<!-- Navbar HTML content -->
</nav>
</body>
</html>