HTML,html教程

來源:互聯網
上載者:User

HTML,html教程

<meta> 標籤提供了中繼資料.中繼資料也不顯示在頁面上,但會被瀏覽器解析。

META 元素通常用於指定網頁的描述,關鍵詞,檔案的最後修改時間,作者,和其他中繼資料。

中繼資料可以使用於瀏覽器(如何顯示內容或重新載入頁面),搜尋引擎(關鍵詞),或其他Web服務

//每30秒重新整理當前頁面

<meta http-equiv="refresh" content="30">

標籤

<b>加粗文本</b><i>斜體文本</i><code>電腦自動輸出</code><sub>下標</sub><sup>上標</sup>

建立影像地圖

//該段代碼中的shape指的是點擊地區的形狀,coords指的是連結地區在圖片中的座標和範圍大小(像素為單位)<img src="img/a.ico" width="145" height="126" alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm"> <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm"> <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm"> </map>

表格

 1  //帶有標題的表格 2  3  <table border="1"> 4    <caption>Monthly savings</caption> 5    <tr> 6      <th>Month</th> 7      <th>Savings</th> 8    </tr> 9    <tr>10      <td>January</td>11      <td>$100</td>12    </tr>13    <tr>14      <td>February</td>15     <td>$50</td>16    </tr>17  </table>

列表

  有序列表

//如果為start賦上初始值,有序列表則從這個值開始增長,reversed為翻轉,假如不寫初始值,序號不會為負數,除非自己設定初始值為負數,用type屬性設定有序列表樣式(type=“A”)<ol>  <li>Coffee</li>  <li>Tea</li>  <li>Milk</li></ol><ol  reversed="reversed">  <li>Coffee</li>  <li>Tea</li>  <li>Milk</li></ol><ol start="50" >  <li>Coffee</li>  <li>Tea</li>  <li>Milk</li></ol><ol start="50"  reversed="reversed">  <li>Coffee</li>  <li>Tea</li>  <li>Milk</li></ol>  <ol start="-50" >    <li>Coffee</li>    <li>Tea</li>    <li>Milk</li>  </ol>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.