HTML第一課

來源:互聯網
上載者:User

標籤:網頁   標籤   下標   靜態網頁   錨點   idt   列表   amp   一段   

<標籤名 屬性>內容</標籤名>
<標籤/>
靜態網頁與動態網頁的區別:是否從資料庫提取資料
相對路徑跟絕對路徑
../代表高一級的
&nbsp牛逼的空格
<font face="微軟雅黑" color="#000000" size="7">變換字型</font>
<strong>加黑</strong>   b
<i>傾斜1</i>
<em>傾斜2</em>
<del>刪除線</del>
<sup>上標</sup>
<sub>下標</sub>
<p>第一段</p>
<p>第二段<br>文字</p>
<h1>一級標題</h1>
<h6>六級標題</h6>
<span>層標籤
th是td的加強版,表頭,儲存格內容自動置中加粗
水平位置align:left center right
垂直位置valign:top middle bottom
一段話一段話<center>一段話</center>一段話一段話(相對於頁面的置中)
11<span style="color:#F00">22</span>33
<br/>
無序列表<ul type="square">
      <li>1</li>
      <li>2</li>
    </ul>


有序列表<ol type="I">
      <li>內容1</li>
      <li>內容2</li>
    </ol>
width= 寬度 height=高度
title=“滑鼠放上去顯示” alt="圖片不顯示情況下顯示的文字”

<a href="#top" id="" name="" class="">TOP</a>回到頂部
<a href="#s1">s1</a>回到s1位置(做錨點連結)
<a name="s1">222</a><br/>標記一個s1位置(做錨點的標籤)
<a href="http://www.baidu.com"target="_blank">百度</a><br/>從新頁面開啟
<a href="http://www.baidu.com"target="_self">百度</a><br/>從自身頁面開啟


<table width="500px" height="300px" border="1px">
  <tr>
    <th>標題1</th>
    <th>標題2</th>
    <th>標題3</th>
  </tr>
  <tr align="center" valign="middle">
    <td>margin</td>
    <td>padding</td>
    <td rowspan="2">xxx</td>(跨行:合并同一列的幾個儲存格)
  </tr>
  <tr>
    <td colspan="2">233</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.