用div,form制作登录页面,尽可能做得漂亮。
练习使用下拉列表选择框,无序列表,有序列表,定义列表。
观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。
<!DOCTYPE html><html lang="en"><head> ???<meta charset="UTF-8"> ???<title>MIS问答平台</title></head><body><h1>MIS问答平台</h1><h2>2017</h2><p></p><div ?id="container" style="width:400px " > ???<div id="header" style="background-color:green;"><h2 align="center" style="margin-bottom:0;">LOGIN</h2></div> ???<div id="content" style="background-color:#EEEEEE;height:150px;width:400px;float:left;"> ???????<form action=""> ???????????Username:<input type="text" name="user"placeholder="Username"><br> ???????????Password:<input type="password" name="password"placeholder="Password"> ???????????<br> ???????????<input type="radio"name="role"value="stu">student ???????????<input type="radio"name="role"value="tea">teacher ???????????<br> ???????????<input type="button" value="login"> ???????????<input type="button" value="cancel"> ???????</form> ???</div> ???<div id="footer" style="background-color:#C0C0C0;clear:both;text-align:center;">版权 ? duym</div></div><div ?id="container" style="width:400px " > ???<div id="header" style="background-color:green;"><h2 align="center" style="margin-bottom:0;">SEARCH</h2></div> ???<div id="content" style="background-color:#EEEEEE;height:150px;width:400px;float:left;"> ???????<from> ???????????<select> ???????????????<option>选择</option> ???????????????<option>收藏</option> ???????????????<option>喜欢</option> ???????????</select> ???????</form><br> ?????相关查询: ?????<ul> ????????<li>教学资料查询</li> ?????????<li>考试查询</li> ?????</ul> ??????<ol> ????????<li>教学管理</li> ??????????<li>资源管理</li> ?????</ol> ???</div> ???<div id="footer" style="background-color:#C0C0C0;clear:both;text-align:center;">版权 ? duym</div></div><hr> <P>友情链接</P> ?<a href="http://www.gzcc.cn/">广州商学院<br> ?????<img src="http://img1.3lian.com/img013/v3/2/d/61.jpg" width="258" height="39" alt="gzcc.cn" ?></a></body></html>
web基础,用html元素制作web页面
原文地址:http://www.cnblogs.com/095lqt/p/7660410.html