<!DOCTYPE html> <html> <body> <form action="/Index/Demo/demo_form.html"> First name:<br> <input type="text" value="Mickey"> <br> Last name:<br> <input type="text" name="lastname" value="Mouse"> <br><br> <input type="submit" value="Submit"> </form> <p>如果您点击提交,表单数据会被发送到名为 demo_form.html 的页面。</p> <p>first name 不会被提交,因为此 input 元素没有 name 属性。</p> </body> </html>