這個(gè)代碼里面的name="submitBtn"是必須輸入的代碼嗎?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Label標(biāo)簽的使用效果</title>
</head>
<body>
<form>
你對(duì)什么運(yùn)動(dòng)感興趣<br/>
<label for="run">慢跑</label>
<input type="checkbox" name="慢跑" id="run">
</br>
<label for="ds">登山</label>
<input type="checkbox" name="登山" id="ds">
<br/>
<label for="lq">籃球</label>
<input type="checkbox" name="籃球" id="lq">
<br/>
<center>如果喜歡,你還可以給我發(fā)email</center>
<label for="email">電子郵箱</label>
<input type="email" placeholder="請(qǐng)輸入你的郵箱" id="email">
<input type="submit" value="提交" name="submitBtn">
</form>
</body>
</html>
這個(gè)代碼里面的name="submitBtn"是必須輸入的代碼嗎??<input type="submit" value="提交" name="submitBtn">
2016-03-14
在這里不是必須輸入的。但是如果你需要在別的地方用到這個(gè)按鈕的時(shí)候,就得加ID 或者NAME,以便快速找到它。
2016-03-14
就是名字,以后用的話,方便找到
2016-03-14
這里可以不用輸
2016-03-14
只是個(gè)命名吧,其他字母也可以代替的吧