zoukankan      html  css  js  c++  java
  • HTML学习小结

    1.基本格式:

      <html>

        <head>

          <title>*****</title>

        </head>

        <body>

          ......

        </body>

      </html>

     2.文字段落的控制的各种标签及属性值:

      标签分开始标签和结束标签,形如<html>和</html>

      标题:<h1>,<h2>,...,<h6>           属性:{align:left,center,right;color;}

      水平线:<hr/>(单标签:没有结束标签,一般在标签名后加"/")

      段落标签:<p></p>(控制文字在一个段落中显示)

      文字装饰标签:<b></b>对选中区域进行加粗     <u></u>对选中区域加下划线

      链接标签:<a href="http://www.w3school.com.cn">This is a link</a>

      列表标签:<ul> <li>......</li>  <li>......</li> ...... </ul>(无序列表)

           <ol> <li>......</li>  <li>......</li> ......</ol>(有序列表)

      区域划分标签:<div></div>{background-color;width;height;}(float属性可以对划分区域进行排版,属性值有left,right)

      内联框架标签:<iframe   name="content" width=100% height=100% src="http://www.w3school.com">(用于在一个版面中同时浏览多个页面,将该标签放在        <div></div>标签内)

              <a href="http://www.baidu.com" target="content">百度</a>(点击该链接是就可将该链接中的页面显示在内联框架中)

      表格标签:<table border="1">
            <tr>
              <td>row 1, cell 1</td>
              <td>row 1, cell 2</td>
            </tr>
            <tr>
              <td>row 2, cell 1</td>
              <td>row 2, cell 2</td>
            </tr>
           </table>

           (显示为2*2的表格,即<tr></tr>定义一行,<td><td>定义列)

            可以用colspan,rowspan两个属性来定义跨行和跨列的表格,形如:

              <table border="1">
               <tr>
                 <th>***</th>
                 <th colspan="2">***</th>    (跨两列)
               </tr>

               <tr>
                  <th rowspan="2">***</th>    (跨两行)

               </tr>

              </table>

  • 相关阅读:
    Leetcode 121. Best Time to Buy and Sell Stock
    Leetcode 120. Triangle
    Leetcode 26. Remove Duplicates from Sorted Array
    Leetcode 767. Reorganize String
    Leetcode 6. ZigZag Conversion
    KMP HDU 1686 Oulipo
    多重背包 HDU 2844 Coins
    Line belt 三分嵌套
    三分板子 zoj 3203
    二分板子 poj 3122 pie
  • 原文地址:https://www.cnblogs.com/liu-tao/p/3197738.html
Copyright © 2011-2022 走看看