html的常用代碼

來源:互聯網
上載者:User

標籤:option   data   顯示   序列   縮小   asi   rip   ted   cti   

 

1、

超連結  <a href="#">超級連結(anchor)</a> 

    <address>地址(address)</address>

    <b>粗體(bold)</b>
    <big>放大(big)</big>
    <blockquote> 引用塊(blockquote)</blockquote>
    <br/> 換行(break)

    <center> 置中(center)</center>
    <cite>引用(cite)</cite>
    <code>代碼(code)</code>

    <del> 刪除(delete)</del>
    <dfn> 定義(definition)</dfn>
    <div> 區塊(division)</div>
    <em> 強調(emphasize)</em>

    <hr/> 橫線(horizontal)

    <i> 斜體(italic)</i>

    <u>底線(italic)</u>

    <p>p 段落(paragraph)</p>
    <pre>按預定格式顯示的文本(Preformatted)</pre>
    <q>引用(quote)</q>

    <samp>例子(sample)</samp>    <small>縮小(small)</small>
    <span>文本段(span)</span>
    <strong>重點強調(strong emphasized)</strong>
·   <sub>下標(subscript)</sub>
    <sup>上標(superscript)</sup>    <textarea>多行文本輸入區(textarea)</textarea>    <tt>電傳打字機(teletype)(等寬字型)</tt>     <var>可變文本(variable)</var> 2、標題標籤

<h1>標題1</h1>

<h2>標題2</h2>

<h3>標題3</h3>

<h4>標題4</h4>

<h5>標題5</h5>

<h6>標題6</h6>

3、列表標籤 ——  

    [1]、dl 字典列表(dictionary list)

  <dl>

    <dt>dt 字典標題(dictionary title)</dt>

            <dd>dd 字典資料(dictionary data)</dd>

    <dt>dt 字典標題(dictionary title)</dt>

                   <dd>dd 字典資料(dictionary data)</dd>

  </dl>

    [2]、ol 有序列表(order list)

<ol>

<li>li 清單項目(list item)</li>

 

<li>li 清單項目(list item)</li>

 

 

</ol>

     [3]、ul 無序列表(unordered list)

 <ul>
       <li>清單項目(list item)</li>
       <li> 清單項目(list item)</li>
 </ul>

4、表單標籤
<form action="#" method="post">表單(form)</form>

<img src="#" alt="圖片" />圖片(image)
<input type="text" name="name" value="" />input,type=‘text‘ 文本輸入框(text)
<input type="radio" name="name" value="" />input,type=‘radio‘ 單選框(radio)
<input type="checkbox" name="name" value="" />input,type=‘checkbox‘ 複選框(checkbox)
<input type="file" name="name" value="" />input,type=‘file‘ 檔案選擇框(file)
<input type="hidden" name="name" value="" />input,type=‘hidden‘ 隱藏欄位(hidden)
<input type="image" name="name" value="" />input,type=‘image‘ 圖片按鈕(image)
<input type="password" name="name" value="" />input,type=‘password‘ 密碼輸入框(password)
<input type="reset" name="name" value="reset" />input,type=‘reset‘ 重設按鈕(reset)
<input type="submit" name="name" value="submit" />input,type=‘submit‘ 提交按鈕(submit)
<input type="button" name="name" value="button" />input,type=‘button‘ 按鈕


5、下拉式清單方塊

    select 挑選清單(select)

<select>

<option value="value">option 選擇項(option)</option>

</select>


6、table 表格(table)
<table border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td>td 表格式資料(table data)</td>

 

    <td>td 表格式資料(table data)</td>

 

 

  </tr>

  <tr>

    <td>td 表格式資料(table data)</td>

 

    <td>td 表格式資料(table data)</td>

 

 

  </tr>

</table>

html的常用代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.