xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool(w3cschool.cn)</title>
</head>
<body>
<form action="/statics/demosource/demo-form.php" method="get" id="nameform">
First name: <input type="text" name="fname" /><br>
Last name: <input type="text" name="lname" /><br>
</form>
<p>下面的按钮是在表单元素外,但仍是表单的一部分。</p>
<button type="submit" form="nameform" value="提交">提交</button>
<p><b>注意:</b>除了 Internet Explorer 浏览器,其他主流浏览器都支持 form 属性。</p>
</body>
</html>