JSFiddle - React, Tailwind, and code Playground
by kpulkit29
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Side-by-Side Input and Button</title>
</head>
<body>
<form>
<label for="name">aad</label>
<input id="name" type="text" placeholder="Enter your name">
<button type="submit">Submit</button>
</form>
</body>
<style>
form {
display: flex; /* Make the form elements display inline */
}
form input, form button {
margin: 5px; /* Add some margin for spacing */
}
</style>
</html>