自己总结的HTML5知识点(一)

2016-10-08  本文已影响0人  50153465fcd8
  <table border="1" bgcolor="red" width="10" height="10"
  cellspacing="0" cellpading="2">
  <!--创建表格/增添表格线/设置表格边框颜色/设置宽/设置高/设置边框粗细/设置内容与边框距离-->
    <caption>表格标题</caption>         <!--设置表格标题-->
    <tr >                                   <!--创建行-->
        <td>第一行,第一列</td         ><!--创建单元格-->
        <td>第一行,第二列</td>
        <td>第一行,第三列</td>
     </tr>
  </table>

...

  <td>
     <table>
         ....
     </table>
  </td>

...

<ol type="列表类型" start="起始编号">
    ...
   <li>...</li>
    ...
   <li>...</li>
   ...
</ol>
        type类型
        1,数字(默认)
        a,小写字母
        A,大写字符
        i,小写罗马数字
        I,大写罗马数字
  <form><!--定义表单-->
    <!--主要属性 action:定义表单被提交时发生的动作,通常包含服务方脚本的URL;
    method:指出表单数据提交的方式,取值为get或者post;
    enctype:表单数据进行编码的方式;
    name:表单名称-->
    <input type="text"><!--文本框-->
    <input type="password"/><!--密码框-->
                                    <!--主要属性
                                      name:名称
                                      value:由访问者自由输入的任何文本
                                      maxlength:限制输入的字符数
                                      readonly:设置文本控件只读-->
上一篇下一篇

猜你喜欢

热点阅读