JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<form>
<p><label for="nom">Nom : <input type="text" id="nom" /></label></p>
<p><label for="prenom">Prénom : <input type="text" id="prenom" /></label></p>
<p>Âge : <select id="age"><option>21</option></select></p>
<p><input type="submit" value="soumettre"/></p>
</form>
</div>
CSS
div{
width:300px;
margin:0 auto;
}
}
label
{
display: block;
width: 70px;
}