编辑下面的代码:【加编码】
<html> <body> <form action="demo-form.php" id="form1"> First name: <input type="text" name="fname"><br> <input type="submit" value="Submit"> </form> <p> "Last name" 字段没有在form表单之内,但它也是form表单的一部分。</p> Last name: <input type="text" name="lname" form="form1"> <p><b>注意:</b> IE不支持form属性</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂