<div> <label>5文字まで:<input type="text" maxlength="5"></label> </div> <div> <label>10文字まで:<input type="text" maxlength="10"></label> </div>