html重点

1.有序列表和无序列表:

形式:type属性

     Type=1 或A 或a或I 或i

     设置编号的开始序号:start属性

     Start=n   (只能是数字)

  <ol>

             <li>小编一号</li>

             <li>小编号2</li>

             <li>小编号3</li>

   </ol>

无序列表和嵌套:

  <ul>

        <li></li>

        <li></li>

        <li>

                <ul>

                         <li></li>

                         <li></li>

                </ul>

        </li>

</ul>

 无序列表经常用作导航

2.表格

       <table>

                    <tr>

                             <td></td>

                   </tr>

       </table>

      <th></th>标题单元格

属性:border,边框宽度;cellspacing,表格内框的宽度;cellpadding,表格内的文字至四周边框的距离;Height,高度;width,宽度; bordercolor,边框颜色; bgcolor,背景颜色; align,表格在网页中的水平对齐方式。

重点:    跨行、跨列

             Rowspan、 colspan

              

             表格标题标记caption

             <caption align=top或bottom>

3.相对路径和超链接

img

     -demo1

          -photo.jpg

demo

     -index.html

在inde.html里面添加photo.jpg

../img/demo1/photo.jpg

超链接<a href=""></a>

     

原文地址:https://www.cnblogs.com/dedin/p/4829285.html