JSFiddle - React, Tailwind, and code Playground
by Chris
HTML
<form id="contactForm">
<fieldset>
<legend>Customer Information</legend>
<label for="fn">First name:</label>
<input name="firstname" id="fn" type="text" size="25" onBlur="validFName()" />
<label for="ln">Last name:</label>
<input name="lastname" id="ln" type="text" size="25" onBlur="validLName()" />
<label for="em">E-mail Address:</label>
<input name="email" id="em" type="text" size="25" />
<label for="ph">Telephone Number:</label>
<input name="phone" id="ph" type="text" size="25" onBlur="validPhone()" />
<label for="ot">Comments:</label>
<textarea name="other" id="ot" rows="10" cols="50"></textarea>
<input type="submit" value="Submit" />
<input type="reset" value="Clear form" />
</fieldset>
</form>
CSS
#contactForm {
margin-left: 150px;
width: 600px
}
input[type="text"],
textarea {
display: block;
margin: 0 0 15px
}