作业一:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业一</title>
</head>
<body>
<form action="../01.html/1.3 块级和行内标签/美女.jpg" method="post">
<table border="1" align="center" width="500">
<tr>
<th colspan="2" align="center">
用户注册</th>
</tr>
<tr>
<td>
用户名
</td>
<td>
<input type="text" name="username" id="username" maxlength="20">
</td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" name="password" id="password" maxlength="20"></td>
</tr>
<tr>
<td>性别</td>
<td><input type="radio" name="sex" value="男" >男
<input type="radio" name="sex" value="女" >女
</td>
</tr>
<tr>
<td>爱好</td>
<td> <label><input type="checkbox"id=""name= "like" value="写作" >写作</label>
<label><input type="checkbox"id=""name= "like" value="听音乐">听音乐</label>
<label><input type="checkbox"id=""name= "like" value="体育">体育</label>
</td>
<tr>
<td><label for="procvince">省份</label></td>
<td>
<select name="procvince" id="">
<option value="shaanxi" selected>陕西</option>
<option value="shanx">山西</option>
</select>
</td>
</tr>
<tr>
<td>自我介绍</td>
<td>
<textarea name="intro" id="" cols="25"rows="5"placeholder="这家伙什么都没留下">
</textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="send" id="" value="提交">
<input type="reset" name="重置" id="" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>
运行截图
作业二:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<a href="https://img2.baidu.com/it/u=3303883917,563862957&fm=253&fmt=auto&app=120&f=JPEG?w=786&h=500" target="_blank">
汇款单
</a>
</body>
</html>
截图:
作业三:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业二</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
width:800px;
height:300px;
}
.pic{
width:100px;
height:300px;
float:left;
}
img{
width:300px;
height:400px;
margin-left:50px;
margin-top:10px;
margin-bottom:10px;
}
.古诗{
float:right;
width:500px;
height:300px;
}
</style>
</head>
<body>
<h1>
<span style="font-size: 40px;color:rgb(1, 16, 11);">将进酒</span>
<span style="color: rgb(1, 16, 11);font-size: 30px;">君不见黄河之水天上来</span>
</h1>
<div class="container">
<div class="pic">
<img src="https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2022%2F0508%2F3812b870j00rbkmk7001nc000go00n0m.jpg&thumbnail=660x2147483647&quality=80&type=jpg" alt="">
</div>
<div class="古诗">
<pre style="font-size: 15px;color: rgb(11, 1, 1);">
君不见,黄河之水天上来,奔流到海不复回。
君不见,高堂明镜悲白发,朝如青丝暮成雪。
人生得意须尽欢,莫使金樽空对月。
天生我材必有用,千金散尽还复来。
烹羊宰牛且为乐,会须一饮三百杯。
岑夫子,丹丘生,将进酒,杯莫停。
与君歌一曲,请君为我倾耳听。
钟鼓馔玉不足贵,但愿长醉不愿醒。
古来圣贤皆寂寞,惟有饮者留其名。
陈王昔时宴平乐,斗酒十千恣欢谑。
主人何为言少钱,径须沽取对君酌。
五花马,千金裘,呼儿将出换美酒,与尔同销万古愁
</pre>
</div>
</div>
</body>
</html>
</body>
</html>
作业四:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业4</title>
</head>
<body>
<h1>
<span style="font-size: 30px;color:rgb(1, 16, 11);">热门电影板块</span>
</h1>
<hr>
<h2>
<span style="font-size: 20px;color:rgb(1, 16, 11);">最新热门电影</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">热门</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">最新</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">豆瓣高分</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">冷门佳片</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">华语</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">欧美</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">韩国</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">日本</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">更多> ></span>
</h2>
<hr>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://image13.m1905.cn/uploadfile/2017/0209/20170209052043307015.jpg" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://img0.baidu.com/it/u=1940098999,3365877947&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=608" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://www.z4a.net/images/2017/06/13/170760.jpg" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://img2.baidu.com/it/u=3780871583,2165650612&fm=253&fmt=auto&app=138&f=JPEG?w=386&h=499" alt="" width="320px" height="250">
</span>
<br>
<span style="font-size: 15px;color:rgb(1, 16, 11);">猜火车 8.1</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">贝尔科实验 6.0</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">加州公路巡警 6.8</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">歌声不绝 6.3</span>
<br>
<br>
<br>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201708%2F08%2F20170808203100_e5WPZ.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1722782423&t=c8794024688ffb04d5db91f2b4507026" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://img0.baidu.com/it/u=2892468881,3343163381&fm=253&fmt=auto&app=138&f=JPEG?w=329&h=500" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://img1.baidu.com/it/u=2062191019,2618180185&fm=253&fmt=auto&app=138&f=JPEG?w=352&h=499" alt="" width="320px" height="250">
</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">
<img src="https://img1.baidu.com/it/u=1404117082,901246117&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=714" alt="" width="320px" height="250">
</span>
<br>
<br>
<span style="font-size: 15px;color:rgb(1, 16, 11);">明日的我和昨日的我 8.1</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">速度与激情三 6.0</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">极速特工 6.8</span>
<span style="font-size: 15px;color:rgb(1, 16, 11);">金刚狼三:殊死一搏 6.3</span>
</body>
</html>