HTML、sqlserver数据库和java前七章节的复习(一)

1.HTML的基本结构

<!doctype>
<html>
	<head>
		<title></title>
		
	</head>
	<body>
	</body>
</html>

2.有序列表

<ol><li></li></ol>

3.无序列表

<ul><li></li></ul>

4.写一个边框为1的表格

<table border="1">
	<tr>
		<td></td>
	</tr>
</table>

5.插入一张图片

<img src="图片地址" >

6.写一个超链接

<a href="连接地址"></a>

7.分别写出css的基本选择器有哪些?语法是什么
ID选择器:#p{color:red}
类选择器:.p{color:red}
标签选择器:p{color:red}
8.写几个表单(文本框,密码框,下拉菜单,单选按钮,提交按钮)

<form action="地址" method="get/post">
	<input type="text" name="name"/>
	<input type="password" name="pass"/>
	<select>
		<option></option>
	</select>
	<input type="radio" name="sex"/>男
	<input type="radio" name="sex"/>女
	<input type="submit" vlaue="提交"/>
</form>

9.设置字体颜色

p{color:red}

10.设置div的背景颜色

div{background-color:red}

11.设置左浮动

float:left

12.设置一个字体大小为20px

font-size:20px

13.绝对定位、固定定位和相对定位

position:absolute
position:fixed
position:relative

14.分别给两个表里面添加数据

insert into emp vlaues('钱三炮','男','2019-1-7',1,'2451999120@qq.com')

insert into dept(1,'开发部')

15.将编号为1的员工姓名修改为钱三炮

update emp set ename = '钱三炮' where eid = 1

16.删除钱三炮的记录

delete from emp where ename = '钱三炮'

17.查询全部员工

select * from emp

18.查询每个部门的员工人数

select count(*),did from emp group by did

19.查询名字中含三炮的人

select * from emp where ename like '%三炮%'

20.查询电子邮箱为空的员工

select * from emp where email is null
原文地址:https://www.cnblogs.com/a1111/p/12815945.html