As someone who is relatively new to HTML/CSS, most of what I have learned has come from this platform or by searching for answers online. I am nearing completion of my assignment, but I am struggling to figure out how to display two label words on the same line. https://i.stack.imgur.com/TRdxs.png
[<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
body {background-color: black;}
div {}
label {display:inline-block;width:235px;margin-left: 20px; margin-top: 20px; font-size: 25px; font-family: Calibre; color: white; text-align: left;}
input {margin-top: 20px; margin-right: 20px;padding: 12px 20px;}
#main {border: 5px solid white; width: 600px; height: 400px;}
button {margin-left: 320px; margin-top: 20px; margin-bottom: 20px; background-color:#00BB00; width:120px; height: 40px;
color: white;
font-size: 20px;
border-radius: 46px;
-moz-border-radius: 46px;
-webkit-border-radius: 46px;
border: 0px solid #800000;
font-family: Calibre}
</style>
</head>
<body>
<div id="main">
<form action="/web.engineering" method="post">
<div>
<label>Username:</label>
<input type="text"placeholder="Username" name="username" required>
</div>
<div>
<label>First name:</label>
<input type="text" placeholder="First name" name="firstname" required>
</div>
<div>
<label>Last name:</label>
<input type="text" placeholder="Last name" name="lastname" required>
</div>
<div>
<label>Password:</label>
<input type="password" placeholder="Enter password" name="password" required>
</div>
<div>
<label>Passwordconfirmation:</label>
<input type="password" placeholder="Re-enter password" name="Repeat password" required>
</div>
<div>
<button type="submit" ><b>Register</b></button>
</div>
</form>
</div>
</body>
</html>][1]
This is the code I currently have and the image represents what I am trying to achieve. Can anyone guide me on how to display "Password confirmation" on the same line as the text box? Thanks in advance.