用div,form制作登录页面,尽可能做得漂亮。
练习使用下拉列表选择框,无序列表,有序列表,定义列表。
观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。
<!DOCTYPE html><html lang="en"><head> ???<meta charset="UTF-8"> ???<title>MISS</title></head><body> ????<h1> MIS问答平台</h1><div id="container" style="width: 400px"> ???<div id="header" style="background-color: bisque"><h2 align="center"style="margin-bottom: 0;">登录</h2></div><div id="content" style="background-color: bisque;height: 150px;width: 400px;float: left;"align="center"><from> ???????????username<input type="text" name="firstname"> ?<br> ???????????password<input type="password" name="pwd" > ???<br> ???<input type="radio" name="role" value="stu" center >student ???<input type="radio" name="vehicle" value="Bike">teacher<br> ???<input type="button" value="replace"></from></div> ???????<div id="footer" style="background-color: bisque;clear: both;text-align: center;"> duym</div></div><hr></body></html>
<!DOCTYPE html><html lang="en"><head> ???<meta charset="UTF-8"> ???<title>MISS</title></head><body> ????<h1> MIS问答平台</h1><div id="container" style="width: 400px"> ???<div id="header" style="background-color: lightskyblue"><h2 align="center"style="margin-bottom: 0;"></h2>相关栏目 ???related sections</div><div id="content" style="background-color: lightskyblue;height: 250px;width: 400px;float: left;"><from> ???<select> ???????<option>问答</option> ???????<option>提问</option> ???????<option>收藏</option> ???</select></from> ???<ul> ???????<li>教师常用表格</li> ???????<li>学生常用表格</li> ???????<li>教学管理表格</li> ???????<li>教学管理文件</li> ???????<li>参考资料</li> ???</ul> ???<ol> ???????<li>教师常用表格</li> ???????<li>学生常用表格</li> ???????<li>教学管理表格</li> ???????<li>教学管理文件</li> ???????<li>参考资料</li> ???</ol>></div></div> ???????<div id="footer" style="background-color: lightskyblue;clear: both;text-align: center;"></div><hr></body></html>
web基础,用html元素制作web页面
原文地址:http://www.cnblogs.com/Sjkq1/p/7661363.html