HTML5新的form属性实例页面
回到相关文章 »代码:
HTML代码:
<form id="contact_form" method="get"> <p> <label for="name">姓名:</label><input type="text" id="name" name="name"> </p> <p> <label for="email">邮箱:</label><input type="email" id="email" name="email"> </p> <input type="submit" id="submit" value="发送"> <a href="html5-new-form-attribute.html" class="reload">重载当前页</a> </form> <p> 评论:<textarea id="comments" name="comment" form="contact_form"></textarea> </p>
效果:
评论: