1.HTML
1.a標簽作用 超鏈接和本頁面的錨鏈接。 錨鏈接是
href
屬性
”#要跳到的
id
”.
2.Pre標簽星瘾, 在
pre
標簽里的元素的格式都會保留下來,可以理解為原樣輸出。
3.表單元素
<form action=" " method="post">
Form里面
actio
屬性表示當表單提交時县貌,向何處提交表單數(shù)據(jù)。
method屬性是指
form
的提交方式凑懂,一般有兩種提交方式窃这。
Post:一般傳送的是比較小內(nèi)容的表單,安全性更高,一般采用
post
的更多杭攻。
Get:一般傳送的是內(nèi)容大的表單祟敛。安全性較低。
在表單中
name屬性表示獲取服務器的數(shù)據(jù)兆解。
Value
屬性表示默認值馆铁。
Checked屬性表示默認的選中項。一般用于
radio
標簽和
checkbox
標簽锅睛。
<!--單行文本-->
<input type="text" name="" value="" />
<!--密碼-->
<input type="password" name="" value="" />
<!--單選框-->
<input type="radio" name="" value="" /> <!--復選框-->
<input type="checkbox" name="" value="" />
<!--隱藏域-->
<input type="hidden" name="" value="" />
<!--提交按鈕-->
<input type="submit" name="" value="" />
<!--文件域-->
<input type="file" name="" value="" />
<!--重置按鈕-->
<input type="reset" name="" value="" />
<!--按鈕-->
<input type="button" name="" value="" />
<!--文本區(qū)域-->
<textarea name="" cols="30" rows="10">
</textarea>
<!--下拉框-->
<select name="">
<option value=""></option>
</select>
</form>