01 基本结构和文本标签
<!--
基本结构
-->
<!DOCTYPE html>
<!--文档类型-->
<html lang="zh">
<!--语言-->
<head>
<meta charset="UTF-8">
<!--编码-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<!--标题-->
</head>
<body>
<p>段落</p>
<br>换行<br>
<h1>标题1</h1>
<h2>标题2</h2>
<h3>标题3</h3>
<h4>标题4</h4>
<h5>标题5</h5>
<h6>标题6</h6>
<hr>水平线<hr>
<!--文本格式化标签-->
<strong>加粗</strong> <!--空格-->
<em>斜体</em>
<del>删除线</del>
<span>与CSS结合</span>
</body>
</html>
02 图片,超链接,图片映射
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<img id ="h" src="#" alt="图片载入出错时显示的文字" title="图片获得焦点时显示的文字"/>
<br>
图片格式:
jpg 有损压缩,不支持透明
png 无损压缩,支持透明
gif 动图
<hr>
<a href="#h">显示文本
<img src="ss#" alt = "超链接里可以嵌套图片"/>
</a>
<!--
#h 跳转地址
target = "_blank" 跳转方式
-->
<hr>
<!--图片映射-->
<img src="#" alt="" usemap="#haha"/>
<map name="haha">
<area shape="circle" coords="233,456,50" href="#">
<!--
area 划分区域
shape 形状
圆形 circle
矩形 rect
多边形 poly
-->
</map>
</body>
</html>
03 列表,表格
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<!-------------------------------列表----------------------------------------->
无序列表
<ul>
<li>aaa</li>
<li>bbb</li>
</ul>
有序列表
<ol>
<li>111</li>
<li>222</li>
</ol>
自定义列表
<dl>
<dt>标题</dt>
<dd>一</dd>
<dd>二</dd>
</dl>
<!--------------------------------表格----------------------------------------->
<table border="1px solid #fff">
<th>title</th>
<tr>
<td colspan="2">111</td><!--合并行-->
<td rowspan="2">222</td><!--合并列-->
</tr>
<tr>
<td>aaa</td>
<td>bbb</td>
</tr>
</table>
</body>
</html>
04 表单
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="#" method="GET">
用户名:<input type="text"/>
密码:<input type="password"/><br>
<!--单选框-->
性别:
<input type="radio" name="sex">男
<input type="radio" name="sex">女<br>
<!--复选框-->
兴趣:
<input type="checkbox" name="ckb" value="fan">吃饭饭
<input type="checkbox" name="ckb" value="jiao">睡觉觉
<input type="checkbox" name="ckb" value="dou">打豆豆<br>
<!--下拉框-->
城市:
<select name = "city">
<option value="shanghai">上海</option>
<option value="beijing">北京</option>
</select>
<input type="submit" value = "提交">
</form>
</body>
</html>
05 布局
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<!--DIV布局-->
<div style="background-color:aqua">哈哈</div>
<div style="background-color:blue">呵呵</div>
<div style="background-color:crimson">嗯嗯</div>
<!--iframe-->
<iframe src="./04 表单.html"></iframe>
<iframe src="./05 布局.html"></iframe>
</body>
</html>