JSFiddle - React, Tailwind, and code Playground
by Wentz Wu
HTML
<form action="">
<div>
<label for="FirstName">First Name:</label> <input type="text" name="FirstName" id="FirstName" placeholder="First Name" required>
</div>
<div>
<label for="Age" class="for">Age</label>
<input type="number" name="Age" id="Age">
</div>
<button>submit</button>
</form>
CSS
label{
font-weight: bold;
}
div{
margin-bottom:1em;
}