HTML列表 表格 媒体元素

1. 列表
    a. 无序列表:用于导航,侧边栏新闻,图文组合。
       <ul>
            <li></li>
            <li></li>
      </ul>         

     无序列表清除前面小数点:                     

list-style-type:none:

   b. 有序列表:用于试卷,问卷调查,排行榜
      <ol>
          <li></li>
          <li></li>
      </ol>
    c. 定义列表:用于标题下有一个或多个子项(网页底部的友情链接,主题下的子项)
      <dl>
          <dt>水果</dt>
          <dd>苹果</dd>
          <dd>桃子</dd>
     </dl>
 

2. 表格:

 <table border="1px" width="50%" height="300px" cellspacing="0px" align="center">
            <tr align="center">
                <th>学号</th>
                <th>姓名</th>
                <th>家庭住址</th>
            </tr>
            <tr align="center">
                <td rowspan="2">1001</td>
                <td colspan="2">张三</td>
                
            </tr>
            <tr align="center">

                <td>李四</td>
                <td>湘潭市</td>
            </tr>
        </table>

border  边框      align="center"  居中显示        tr —— 行      

cellspacing      设置格子与格子之间的距离

cellpadding      设置单元格内容跟单元格边缘之间的距离

rowspan      行合并               colspan      列合并

3 媒体元素
        1.视频元素
           <video controls loop autoplay>
                   <source src="video/video.webm" type="video/webm"/>
                    <source src="video/video.mp4" type="video/mp4"/>
    </video>
        2.音频
           <audio controls>
                 <source src="music/music.ogg" type="audio/ogg"/>
                  <source src="music/music.mp3" type="audio/mp3"/>
           </video>

4. 布局标签:
     <div>
    <header></header>   头部
    <section></section>   主体
    <footer></footer>        尾部
     </div>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值