满分 100, 同学们测试一下自己可以得多少分? 考试时间要求 90 分钟之内完成, 80 分为合格
[toc]
每题 5 分,共 25 分
(1). phpStudy 是___b__
(2). 小皮面板是___b___
(3). html 元素是由___b__
描述的
(4). css 的功能是___b____
(5). <table>
是____a___
类型的元素
每题 5 分,共 40 分
id
, class
和 ___style_____
;<header>
元素, 页脚使用__<footer></footer>____
元素___formmeathed_______
,处理脚本的属性是:_____formaction________
;<a>
元素除了页面跳转外, 还可以实现发邮件,打电话, ____下载____
和____锚点______
;unicode
方式,应该使用的字体属性是__@font-face_____
<meta charset="UTF-8" />
的意思是: _________设置默认字符编码集格式__________________________
第一题: 20 分, 第二题 15 分, 共: 35 分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>用户注册</title>
<link rel="stylesheet" href="register.css" />
</head>
<body>
<form action="" method="post" id="register"></form>
<fieldset form="register">
<legend>用户注册</legend>
<!-- 必填项 -->
<main>
<!-- 用户名 -->
<section>
<label for="username">用户名:</label>
<input
type="text"
id="username"
name="username"
form="register"
placeholder="请输入6-10位用户名"
minlength="6"
maxlength="10"
required
autofocus
/>
<label for="username"><span class="iconfont"></span></label>
</section>
<!-- 密码 -->
<section>
<label for="password">密码:</label>
<input
type="password"
id="password"
name="password"
form="register"
placeholder="请输入8-16位密码"
minlength="8"
maxlenth="16"
required
/>
<label for="password"><span class="iconfont"></span></label>
</section>
<!-- 邮箱 -->
<section>
<label for="email">邮箱:</label>
<input
type="email"
id="email"
name="email"
form="register"
placeholder="请输入邮箱"
required
/>
<label for="email"><span class="iconfont"></span></label>
</section>
<!-- 年龄 -->
<section>
<label for="age">年龄:</label>
<input
type="number"
max="60"
min="18"
value="20"
form="register"
id="age"
name="age"
/>
<label for="age"><span class="iconfont"></span></label>
</section>
<!-- 性别 -->
<section>
<label for="secret">性别:</label>
<div class="gender">
<input
type="radio"
name="gender"
id="male"
form="register"
value="male"
/>
<label for="male">男</label>
<input
type="radio"
name="gender"
id="female"
value="female"
form="register"
/>
<label for="female">女</label>
<input
type="radio"
name="gender"
id="secret"
form="register"
value="secret"
checked
/>
<label for="secret">保密</label>
</div>
</section>
<!-- 兴趣 -->
<section>
<label for="">兴趣:</label>
<div class="hobby">
<input
type="checkbox"
name="hobby[]"
form="register"
id="shoot"
value="shoot"
checked
/><label for="shoot">摄影</label>
<input
type="checkbox"
name="hobby[]"
form="register"
id="travel"
value="travel"
/><label for="travel">旅游</label>
<input
type="checkbox"
name="hobby[]"
form="register"
id="programme"
value="programme"
checked
/><label for="programme">编程</label>
</div>
</section>
<!-- 意向课程 -->
<section>
<label for="teacher">意向课程:</label>
<input
type="text"
id="teacher"
name="teacher"
form="register"
list="table"
required
/>
<datalist id="table">
<option value="HTML开发与实战" label="HTML开发与实战"></option>
<option
value="JavaScript开发与实战"
label="JavaScript开发与实战"
></option>
<option value="CSS3开发与实战" label="CSS3开发与实战"></option>
<option value="PHP开发与实战" label="PHP开发与实战"></option>
<option value="MySQL开发与实战" label="MySQL开发与实战"></option>
</datalist>
</section>
<!-- 报名课程 -->
<section>
<label for="">报名课程:</label>
<select name="enlist" id="enlist" form="register">
<optgroup label="前端">
<option value="HTML开发与实战" label="HTML开发与实战"></option>
<option value="CSS3开发与实战" label="CSS3开发与实战"></option>
<option
value="JavaScript开发与实战"
label="JavaScript开发与实战"
></option>
</optgroup>
<optgroup label="后端">
<option value="PHP开发与实战" label="PHP开发与实战"></option>
<option value="MySQL开发与实战" label="MySQL开发与实战"></option>
<option
value="Laravel开发与实战"
label="Laravel开发与实战"
></option>
</optgroup>
<optgroup label="全选">
<option value="全选选择" label="全部选择"></option>
</optgroup>
</select>
</section>
<!-- 留言 -->
<section>
<label for="">给我留言:</label>
<textarea
name="say"
id="say"
form="register"
cols="30"
rows="10"
placeholder="说点什么吧..."
required
></textarea>
</section>
<!-- 提交 -->
<button
form="register"
formmethod="POST"
formaction="register.php"
formtarget="_black"
>
提交
</button>
</main>
</fieldset>
</body>
</html>
@font-face {
font-family: "iconfont"; /* project id 1741431 */
src: url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.eot");
src: url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.eot?#iefix") format("embedded-opentype"),
url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.woff2") format("woff2"),
url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.woff") format("woff"), url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.ttf")
format("truetype"),
url("//at.alicdn.com/t/font_1741431_zqb14mva9sj.svg#iconfont") format("svg");
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
fieldset {
border: none;
border: 5px solid lightblue;
border-radius: 30px;
width: 500px;
margin: auto;
margin-top: 20px;
}
legend {
text-align: center;
font-size: 1.5rem;
}
span {
}
.gender {
display: inline;
}
.hobby {
display: inline;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>商品信息表</title>
<style>
table {
width: 300px;
border: 3px solid lightblue;
border-radius: 5px;
color: lightcoral;
}
caption {
text-align: center;
}
th,
tr,
td {
border: 1px solid lightblue;
}
</style>
</head>
<body>
<table boder="3" cellspacing="0" cellpadding="5">
<caption>
商品信息表
</caption>
<thead>
<th>区域</th>
<th>商品名</th>
<th>原价</th>
<th>会员价</th>
</thead>
<tbody>
<tr>
<td rowspan="3">零食区</td>
<td>薯片</td>
<td>10</td>
<td>5</td>
</tr>
<tr>
<td>饼干</td>
<td>40</td>
<td>8</td>
</tr>
<tr>
<td>瓜子</td>
<td>8</td>
<td>3</td>
</tr>
</tbody>
</table>
</body>
</html>