十四、web基础,用html元素制作web页面

1.用div,form制作登录页面,尽可能做得漂亮。

2.练习使用下拉列表选择框,无序列表,有序列表,定义列表。

3.观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>音乐在线</title>
</head>
<body>


<div  id="container" style="width:400px " >
    <div id="header" style="background-color:cornflowerblue;"><h2 align="center" style="margin-bottom:0;">倾听你的音乐</h2></div>

    <div id="content" style="background-color:lightsteelblue;height:150px;width:400px;float:left;">
        <form action="">
            Number:<input type="text" name="user" placeholder="请输入会员号"><br>
            Password:<input type="password" name="password" placeholder="请输入专属秘密">
            <br>
            <input type="radio" name="role" value="stu">普通会员
            <input type="radio" name="role" value="teacher">高级会员
            <br>
            <input type="button" value="login">
            <input type="button" value="cancel">
        </form>
    </div>
    <div id="footer" style="background-color:cornflowerblue;clear:both;text-align:center;">独家版权 © wjl</div>

</div>


<div  id="container" style="width:400px " >
    <div id="header" style="background-color:cornflowerblue;"><h2 align="center" style="margin-bottom:0;">搜索</h2></div>

 <div id="content" style="background-color:lightsteelblue;height:200px;width:400px;float:left;">
 <select>
                <option value="" style="color: lightsteelblue;">---请选择---</option>
                <option>会员</option>
                <option>游客</option>
            </select>

 <ul>
             <li>古典音乐</li>
             <li>摇滚音乐</li>
             <li>嘻哈音乐</li>
         </ul>
             <ol>
                 <li>扫一扫</li>
                 <li>听歌识曲</li>
             </ol>
         </div>

 <div id="footer" style="background-color:cornflowerblue;clear:both;text-align:center;">独家版权 © wjl</div>


<hr>
 <P>友情链接</P>
  <a href="http://www.gzcc.cn/">娱乐one by one<br>
      <img src="1.jpg" width="300" height="100" alt="music.cn"  ></a>

</body>
</html>

运行结果如图:

 

 

转载于:https://www.cnblogs.com/Green-/p/7660394.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值