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

本文通过实例展示了如何使用HTML中的div和form元素来创建一个美观的登录页面,并介绍了如何应用下拉列表、无序列表、有序列表及定义列表等元素。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

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

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

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MIS问答平台</title>
</head>
<body>
<h1>MIS问答平台</h1>

<div id="container1" style="width:400px" >
    <div id="head" ><h2 align="center" style="margin-bottom:0;">登陆</h2></div>
    <div id="content1" style="backgroud-color:#ff5412;height:150px;width:400px;float:left;">
         <form>
            用户名:<input type="text" name="用户名" style="backgroud-color:black" placeholder="请输入用户名" ><br>
            密码:<input type="text" name="密码"placeholder="请输入密码"><br>
            <input type="radio">学生
            <input type="radio">老师<br>
            <input type="submit" name="Button1" value="登陆" id="Button1" class="btn_dl">
            <input type="submit" name="Button2" value="取消" id="Button2" class="btn_qx">
        </form>



      </div>

    <div id="footer" style="background-color:cyan;clear:both;text-align:center;">版权  ben</div>

</div>
<div  id="container" style="width:400px " >
    <div id="header" style="background-color:deepskyblue"><h2 align="center" style="margin-bottom:0;">相关栏目/Related sections</h2>
    </div>

    <div id="content" style="background-color:lightskyblue;height:150px;width:400px;float:left;">
                <form>
                    <select>
                    <option>问答</option>
                    <option>选择</option>
                    <option>收藏</option>
                    </select>
</form>

<ul>
    <li>日常监控</li>
    <li>课表管理</li>
    <li>学籍管理</li>
    <li>教材管理</li>
    <li>教学简报</li>
</ul>
         </div>
    <div id="footer" style="background-color:deepskyblue;clear:both;text-align:center;">版权  ben</div>

</div>
<div  id="container" style="width:400px " >
    <div id="header" style="background-color:hotpink"><h2 align="center" style="margin-bottom:0;">快速通道 Fast Track</h2>
    </div>

    <div id="content" style="background-color:lightskyblue;height:150px;width:400px;float:left;">
    <ol>
    <li>校历</li>
    <li>专业课表</li>
    <li>教务系统</li>
</ol>
 <dl>
                  <dt>学院</dt>
                      <dd>会计学院</dd>
     <dd>信息学院</dd>
     </dl>
         </div>
    <div id="footer" style="background-color:hotpink;clear:both;text-align:center;">版权  ben</div>

</div>
</body>
</html>

转载于:https://www.cnblogs.com/0055sun/p/7660659.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值