HTML標籤基礎二

來源:互聯網
上載者:User

標籤:lap   提交   提示   交換   eth   blocks   ica   view   ima   

  1. <ul><li> 列表,每個<li>預設格式最前帶一個圓點
  2. <ol><li>有順序的資訊列表,預設帶1,2,3
  3. <div>相當於一個容器,用於劃分邏輯和獨立的版塊等。如<div id="財經新聞">
  4. <table>表格。<caption>表題,<tbody>,<tr>一行,<th>表頭,<td>資料;summary屬性,表格摘要
    <table>    <tbody>        <tr>            <th>班級</th>            <th>平均分</th>        </tr>        <tr>            <td>一班</td>>            <td>70</td>        </tr>        <tr>            <td>二班</td>>            <td>71</td>        </tr>    </tbody></table>
    View Code

    效果:

  5. <a>超連結。<a href="網址" tiltle="懸停文字">顯示文字</a> target屬性=“_blank”表示在新瀏覽器視窗開啟;
  6. <a>中href=“mailto”時表電子郵件。<a href="mailto:[email protected][email protected]&subject=郵件主題&body=郵件內容">發送</a>第一個分隔用?,後面的都用&
  7. <img src="圖片連結" alt="下載失敗時的替換文本" title="懸停文字">圖片可以是GIF,PNG,JPEG格式
  8. <form>用於和服務端進行資料交換。<form method="傳送方式(get/post等等)" action=“伺服器檔案(home.html等)”>表單裡有各種控制項
  9. 表單控制項:<input type="text/password/radio/checkbox" name="表單名稱" value=“用於提示的預設值,radio和checkbox是用於提交的伺服器的值”>
    1. checkbox(多選)和radio(單選)中checked屬性為“checked”時該項被選中
    2. 同一組的checkbox或radio注意名字要一樣
    • <input type="radio" name="radioexample" value="喜歡" checked="checked"/>
    • <input type="radio" name="radioexample" value="不喜歡" checked="checked"/>
  10. 表單控制項:<textarea>多行文本輸入。cols(列),rows(行)屬性,可用css中的height和width來代替
  11. ……

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.