代码
提交代码
<form action="/user/settings" method="post">
<div>
<label for="username">用户名</label>
<input id="username" name="name" value="" autofocus="" required="">*<!--初始化表单是空-->
</div>
<div>
<label for="full_name">自定义名称</label>
<input id="full_name" name="full_name" value=""><!--初始化表单是空-->
</div>
<div>
<label for="email">邮箱</label>
<input id="email" name="email" value="" required="">*<!--初始化表单是空-->
</div>
<div>
<label for="website">个人网站</label>
<input id="website" name="website" type="url" value=""><!--初始化表单是空-->
</div>
<div>
<label for="location">所在地区</label>
<input id="location" name="location" value=""><!--初始化表单是空-->
</div>
<div>
<input type="reset" value="重置"><button class="ui green button">更新信息</button>
</div>
</form>
运行结果