在HTML中设置元素所属的表单的名称?
使用HTML中的form属性设置元素在HTML中所属的一个或多个表单的名称。
示例
您可以尝试运行以下代码以实现form属性-
<!DOCTYPE html>
<html>
<body>
<form action = "" method = "get" id = "myform">
SubjectID: <input type = "number" name = "subid"><br>
Subject Name: <input type = "text" name = "subname"><br>
Total Students: <input type="number" name = "stcount"><br>
</form>
<button type = "submit" form = "myform" value = "Submit">Click</button>
</body>
</html>热门推荐
10 祝女儿简短祝福语大全
11 大学新年祝福语简短创意
12 元旦适合的祝福语简短
13 朋友出远门祝福语简短
14 初六简短的祝福语
15 祝男孩生日祝福语简短
16 同事调离的祝福语简短
17 拜年红包的祝福语简短
18 妈妈生日祝福语简短励志