溫馨提示×

溫馨提示×

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

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

html基礎--body內(nèi)部標簽

發(fā)布時間:2020-06-28 18:24:18 來源:網(wǎng)絡 閱讀:443 作者:M_x_M 欄目:web開發(fā)

1.塊級標簽(獨占一行)
H系列標簽,p標簽,div標簽
2.行內(nèi)標簽
span標簽
3.form標簽

<form action="表單提交數(shù)據(jù)的地址" method=“GET/POST”></form>

3.1文本輸入框

<input type="text" />

3.2密碼輸入框

<input type="password" />

3.3按鈕

<input type="button" value=“按鈕” />

3.4提交

<input type="submit" value="提交"/>

3.5單選

<input type="radio" name="radio1" value="radio1" checked="checked"/>
<input type="radio" name="radio1" value="radio2"/>

3.6多選

<input type="checkbox" name="checkbox1" value="checkbox1"/>
<input type="checkbox" name="checkbox1" value="checkbox2"/>

3.7上傳

<input type="file" name="filename"/>
需要指定<form enctype="multipart/form-data">

3.8重置

<input type="reset" value="重置" />

3.9多行文本框

<textarea name="moretext"></textarea>

3.10.1下拉框

<select name="select_test"  >
size="1"#控制顯示長度
multiple="multiple"#控制是否多選
    <option value="1" >1</option>
    <option value="2" >2</option>
    <option value="3" >3</option>
</select>   

3.10.2select分組

<select name="select_test"  >
        <optgroup label="1">
        <option value="1" >1.1</option>
        <option value="2" >1.2</option>
        <option value="3" >1.3</option>
    </optgroup>
        <optgroup label="2">
        <option value="1" >2.1</option>
        <option value="2" >2.2</option>
        <option value="3" >2.3</option>
    </optgroup>
</select>   

4.a標簽用法
target=""
4.1鏈接

<a >baidu</a>

4.2錨點

<a href="#t1">1</a>
<a href="#t2">2</a>
<a href="#t3">3</a>
<div id="#1">1</div>
<div id="#2">2</div>
<div id="#3">3</div>

5.img圖片

<img src="路徑" alt=“圖片” title="圖片"/>

6.ul無序列表

<ul>
    <li>1</li>
    <li>2</li>
    <li>3</li>  
</ul>

7.ol有序列表

<ol>
    <li>1</li>
    <li>2</li>
    <li>3</li>  
</ol>

8.dl

<dl>
    <dt>標題</dt>
    <dd>1</dd>
    <dd>2</dd>
    <dd>3</dd>
</dl>

9.table

<table>
    <thead>
        <tr>
            <td>1</td><td>1</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1.1</td><td>1.2</td>
        </tr>
        <tr>
            <td>2.1</td><td>2.2</td>
        </tr>   
    </tbody>    
</table>
合并單元格
<td colspan="2"></td> #橫向合并
<td rowspan="2"></td>#縱向合并

10.label標簽

關(guān)聯(lián)輸入框
<label for="username">用戶名:</label>
<input id="username" type="text" name="username" />
向AI問一下細節(jié)

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

AI