标签:web页面 标签 span image div 观察 定义 each alt
用div,form制作登录页面,尽可能做得漂亮。
练习使用下拉列表选择框,无序列表,有序列表,定义列表。
观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>广州商学院</title> </head> <body> <h1>广州商学院</h1> <h2>2017</h2> <p></p> <div id="container" style="width:400px"> <div id="header" style="background-color:cyan;"><h2 align="center" style="margin-bottom:0;">登录</h2></div> <div id="contant" style="background-color:aquamarine;height:150px;width:400px;float:left;"> <form action=" "...></form> <form> username:<input type="text" name="username" placeholder="请输入用户名"><br> password:<input type="password" name="passname" placeholder="请输入密码"><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="cancle"> </form> </div> <div id="footer" style="background-color:chartreuse;clear:both;text-align:center;">版权</div> </div> <div id="container" style="width:400px"> <div id="header" style="background-color:cyan;"><h2 align="center" style="margin-bottom:0;">搜索</h2></div> <div id="contant" style="background-color:aquamarine;height:150px;width:400px;float:left;"> <form action=" "...></form> <form> <select > <option>问答</option> <option>收藏</option> </select> </form> <ul> <li>python</li> <li>datebase</li> </ul> <ol> <li>python</li> <li>datebase</li> </ol> </div> <div id="footer" style="background-color:chartreuse;clear:both;text-align:center;">版权</div> </div> <hr> <p>友情链接</p> <a href="http://www.gzcc.cn/">广州商学院</a> <img src="http://www.gzcc.cn/2016/images/banner.png" width="500" height="200" alt="gzcc.cn"/> </body>
标签:web页面 标签 span image div 观察 定义 each alt
原文地址:http://www.cnblogs.com/wk15/p/7660406.html