web基础,用html元素制作web页面
用div,form制作登录页面,尽可能做得漂亮。
练习使用下拉列表选择框,无序列表,有序列表,定义列表。
观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>MIS</title> </head> <body> <div id="container" style="width:400px " > <div id="header" style="background-color:#ffa500;"><h2 align="center" style="margin-bottom:0;">登录</h2></div> <div id="content" style="background-color:#EEEEEE;height:150px;width:400px;float:left;"align="center"> <form> 账户:<input type="text" name="username" placeholder="请输入登录名"><br> 密码:<input type="password" name="keyword" placeholder="请输入密码"><br> <input type="radio" name="student">学生 <input type="radio" name="teacher">教师 <input type="radio" name="department">部门<br> <input type="button" value="登录" style="margin-right:10px;font-size:15px; "> <input type="button" value="取消" style="font-size:15px;"><br> </form> </div> <div id="footer" style="background-color:#ffa500;clear:both;text-align:center;">版权@duym</div> </div> <div id="container" style="width:400px " > <div id="header" style="background-color:cornflowerblue;"><h2 align="center" style="margin-bottom:0;">select</h2></div> <div id="head" style="background-color:#EEEEEE;height:80px;width:400px;float:left;"align="center"> What color do you like?<br> <select> <option>red</option> <option>yellow</option> <option>green</option> <option>blue</option> </select> <div id="footer" style="background-color:cornflowerblue;clear:both;text-align:center;">版权@duym</div> <div id="container" style="width:400px " > <div id="header" style="background-color:darkseagreen;"><h2 align="center" style="margin-bottom:0;">相关栏目</h2></div> <div id="xglm" style="background-color:#EEEEEE;height:320px;width:400px;float:left;"> <ul> <li>专业与课程设计</li> <li>人才培养方案</li> <li>教研室建设</li> <li>教学通讯</li> <li>教师技能大赛</li> </ul> <ol> <li>校历</li> <li>专业课表</li> <li>尔雅通识课</li> <li>微课软件</li> <li>普通话测试</li> <li>教务系统</li> <li>在线课程</li> <li>精品课程</li> <li>教育资源</li> </ol></div> <div id="footer" style="background-color:darkseagreen;clear:both;text-align:center;">版权@duym</div> <div id="content4" style="background-color:yellowgreen;height:100px;width:300px;float:left;"> <dl> <dt><h5>coffee</h5></dt> <dd>you can choose hot or cold</dd> </dl></div> </body> </html>