1. 程式人生 > >HTML常用學習記錄

HTML常用學習記錄

amp get frameset 效果 鏈接 sub eset XA alt屬性

  1. ./打開上級
  2. <a href="#H5">#錨尋找<h2 name="H5">123</h2></a>
  3. css:
    <style type="text/css">
    h2 {color:red}
    </style>

<br />折行  <hr />水平線

  1. 居中排列align="center"
  2. <!DOCTYPE html>
  3. 註釋:<!--輸入註釋-->
  4. 背景顏色:<body background="url"> or <body bgcolor="red">
  5. <sub>上標 <sup>下標
  6. <q></q>短引用、<blockquote></blockquote>長引用
  7. 刪除字效果:<del>123<del>、插入字效果:<ins>456</ins>
  8. <target="_blank"> =>>新窗口打開  <target="_top"> =>>跳出框架
  9. <a href="url"><img src=""></a>將圖像作為鏈接
  10. alt =附加屬性 =>>沒有正常顯示時顯示alt屬性。
  11. <a href="mailto:[email protected]?subject=Hello%20again">發送郵件</a>
  12. 垂直框架:

<frameset cols="25%,50%,25%">

<frame src="/example/html/frame_a.html">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">

</frameset>

水平則將cols改為rows.

混合則為兩<frameset cols="25%","75%">

     <frameset rows="50%","50%">

以兩</frameset>結束

HTML常用學習記錄