BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>BootWiki 教程网</title> </head> <body> <form action="demo-form.php" id="nameform" method="get"> First name: <input name="fname" type="text" /><br> Last name: <input name="lname" type="text" /><br> </form> <p>下面的按钮是在表单元素外,但仍是表单的一部分。</p> <button form="nameform" type="submit" value="提交">提交</button> <p><b>注意:</b>除了 Internet Explorer 浏览器,其他主流浏览器都支持 form 属性。</p> </body> </html>
运行结果