溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

HTML超鏈接和表單

發(fā)布時(shí)間:2020-06-11 19:22:28 來(lái)源:網(wǎng)絡(luò) 閱讀:590 作者:yudeboo 欄目:web開(kāi)發(fā)

1.超鏈接
作用:頁(yè)面間導(dǎo)航
語(yǔ)法:<a href="目標(biāo)地址" target="打開(kāi)方式">超鏈接的文字|圖片</a>
(1)頁(yè)面間鏈接        ——應(yīng)用于頁(yè)面導(dǎo)航
(2)錨鏈接        ——使用name屬性和#,常用于頁(yè)面中,頁(yè)面間也可以
(3)功能性鏈接        ——常用于郵箱\QQ鏈接
例如:<a href="mailto:123456@qq.com">郵箱</a>

注:
href屬性_路徑方式
絕對(duì)路徑:少用,完整的地址
相對(duì)路徑:常用,相對(duì)于當(dāng)前地址的位置。

target屬性_打開(kāi)方式
_blank         空白頁(yè)打開(kāi)|新窗口打開(kāi)
_self        自己頁(yè)面打開(kāi)
_parent        父頁(yè)面打開(kāi)
_top頂部打開(kāi)


2、注釋和特殊符號(hào)
注釋:<!--注釋內(nèi)容-->
特殊符號(hào):空格&nbsp;        版權(quán)號(hào)&copy;        
大于(>):&gt; 
         
小于(<):&lt;        
引號(hào)(”):&quot;

3、表單<form method="post\get" action="表單提交地址">…</form>
(1)表單元素input的type屬性的屬性值:
type的屬性值        功能                例子
text                單行文本輸入        <input type="text" name="username" />
password        密碼                <input type="password" name="password" />
radio                單選                <input type="radio" name="sex" value="男" />男checkbox        多選                <input type="checkbox" value="書" />書
reset                重置表單數(shù)據(jù)        <input type="reset" value="重置" />
file                文件上傳                <input type="file" name="files" />
submit                提交表單數(shù)據(jù)        <input type="submit" value="提交" />
p_w_picpath                圖形提交按鈕        <input type="p_w_picpath" src="p_w_picpaths/button.gif" />
button                普通按鈕                <input type="button" value="播放音樂(lè)" />
(2)表單元素:下拉列表-列表項(xiàng)  select-option
<select>
<option>一月</option>
<option>二月</option>
<option>下拉列表項(xiàng)目</option>
</select>

(3)表單元素textarea和他的屬性:行rows、列cols
<textarea rows="2" cols="10">
文本域中的內(nèi)容
</textarea>

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI