網頁的本質就是超級文本標記語言,通過結合使用其他的Web技術(如:腳本語言、公共網關接口、組件等),可以創造出功能強大的網頁。因而,超級文本標記語言是萬維網(Web)編程的基礎,也就是說萬維網是建立在超文本基礎之上的。超級文本標記語言之所以稱為超文本標記語言,是因為文本中包含了所謂“超級鏈接”點。 【實例介紹】 表單中的重置按鈕reset 重置按鈕可以清除用戶在頁面中輸入的信息,將其恢復成默認的表單內容。 【基本語法】 <input type="reset" name="按鈕的名稱" value="按鈕的取值"/> 【語法介紹】 在該語法中,value同樣用來設置顯示在按鈕上的文字。 【實例代碼】
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>重置按鈕</title>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><form action="mailto:weixiaofoxw.com" name="form1" method="post" enctype="application/x-www-form-urlencoded"target="_blank" >
<p>用戶名 :
<input name="textfield" type="text" size="20" maxlength="15" />
</p>
<p>密碼:
<input name="textfield2" type="password" value="abcdef" size="25" maxlength="6" />
</p>
<p>性別 :
<input name="radiobutton" type="radio" value="radiobutton" checked="checked" />
男
<input type="radio" name="radiobutton" value="radiobutton" />
女 </p>
<p>
<input type="submit" name="button" value="提交">
<input type="reset" name="button2" value="重置">
</p>
</form></td>
</tr>
</table>
</body>
</html>
【代碼分析】 在代碼中,加粗部分的<input type="reset"name="button2"value="重置">標記將按鈕的類型設置為reset,取值設置為“重置”,在瀏覽器中瀏覽效果,如圖所示。 
【素材及源碼下載】 請點擊:重置按鈕reset 下載本實例相關素材及源碼
網站建設是一個廣義的術語,涵蓋了許多不同的技能和學科中所使用的生產和維護的網站。 |