1.table标签
<table border="1px " rules="groups" cellpadding="5px" cellspacing="5px" bgcolor="blue">
//边框规则,设置后会合并边框(cellspacing失效)rules: all groups cols;
 <caption align="top">表1</caption> 
//align:top,bottom有效
    <thead>
//一般不写thead,tbody,tfoot
        <tr bgcolor="white">
            <th></th>
            <th></th>
            <th></th>
//一般都是td
        </tr >
    </thead>
    <tbody>
        <tr bgcolor="white">
            <td rowspan="2"></td>
//垂直向下合并单元格
            <td></td>
            <td></td>
        </tr>
    </tbody>  
    <tfoot>
        <tr bgcolor="white">
   <td></td>
            <td colspan="2"></td>
//水平向右合并单元格
        </tr>
    </tfoot>
</table>
2.form块级标签>(input,select,label,textarea,filedset)行内标签
<form action="https://www.baidu.com" method="get" enctype="multipart/form-data">
//发送地址, 发送方式get post, enctype上传文件要加这个

    <input type="file" name="f">
 //按钮submit,reset,imge,button,value:框内默认值
    <input type="button" value="注册">
    <input type="image" src=".../1.jpg" alt="无法显示" >
    <input type="reset" value="重置">
  <input type="submit" value="登陆">
 //输入框 text,password name:提交的key  value:框内默认值(提交的值)
 <input type="text" name="username" placeholder="提示信息" value="王冬" disabled="disabled">
 <input type="password" name="password" placeholder="提示信息" value="王冬" >
 //选择框 radio,checkbox 注意name要相同,value不同-单选框互斥  checked默认选中
 <input type="radio" name="g" value="a" checked="checked">男
 <input type='checkbox' name="h" value="b" checked>篮球
    <input type='checkbox' name="h" value="f">足球
// label标签常用于与checkbox或radio关联,以实现点击文字也能选中/取消checkbox或radio。
 <input type='checkbox' name='basket' id='basketball'>  
 <label for="basketball">篮球</label>
 
 //选择框 select
 <select name="city" > </video>
4.audio行内标签
<!--自动播放 控制面板 重复 预加载 -->
 <audio  src="juhua.mp3" autoplay controls loop preload="auto">当前浏览器不支持audio,该文本便会显示</audio>
 <audio  src="juhua.mp3" autoplay controls loop preload="auto">当前浏览器不支持audio,该文本便会显示</audio>
 <audio  src="juhua.mp3" autoplay controls loop preload="auto">当前浏览器不支持audio,该文本便会显示</audio>
 <audio  src="juhua.mp3" autoplay controls loop preload="auto">当前浏览器不支持audio,该文本便会显示</audio>

相关文章:

  • 2021-11-08
  • 2021-07-17
  • 2021-08-02
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2021-10-08
  • 2022-01-04
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-04-01
相关资源
相似解决方案