H5基础入门笔记
正文
1.H5的结构
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
</body>
</html>
2.<br>
标签
<font color="blue">白日依山尽 <br> 黄河入海流 <br></font>
黑马旅游网<br>
3.<h>
标签
<h1>黑马旅游网 </h1>
<h2>黑马旅游网</h2>
<h3>黑马旅游网</h3>
<h4>黑马旅游网</h4>
<h5>黑马旅游网</h5>
<h6>黑马旅游网</h6>
4.<p>
标签
<p>
<b >hello world</b>
</p>
5.<b>
标签
<b>hello world</b>
6.<hr>
标签
<hr color="red" width="200"size="200" align="left">此处显示一条水平线
7.<i>
标签
<i>hello world</i><br>
<font size="50"face="宋体"color="RED">hello world</font>
8.<img>
标签
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2Ftp05%2F19100120461512E-0-lp.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1642080491&t=11d3d54b26158e9b023afbcd86aa89b5" alt="hello">
9.<table>
标签
<CENTER>
<table border="1">
<caption>hello world</caption>
<tr>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
<tr>
<td>魏</td>
<td>男</td>
<td>12</td>
</tr>
<tr>
<td>申</td>
<td>女</td>
<td>10</td>
</tr>
</table>
</CENTER>
<hr>
<CENTER>
<table border="1">
<caption>hello world</caption>
<tbody>
<tr>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
<tr>
<td>魏</td>
<td>男</td>
<td>12</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>申</td>
<td>女</td>
<td>10</td>
</tr>
</tfoot>
</table>
</CENTER>
<hr>
<CENTER>
<table border="1">
<caption>hello world</caption>
<tbody>
<tr>
<th rowspan="2">姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
<tr>
<td>男</td>
<td>12</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>申</td>
<td colspan="2">女</td>
</tr>
</tfoot>
</table>
</CENTER>
<hr>
10.<a>
标签
<a href="4.黑马程序员公司简介.html">黑马程序员公司简介</a>
早上起床
11.<ol>
列表和<li>
标签
<ol type="I">
<li>睁眼</li>
<li>看手机</li>
<li>穿衣服</li>
<li>刷牙</li>
<li>洗脸</li>
</ol>
13.<ul>
无序列表
<ul>
<li>睁眼</li>
<li>看手机</li>
<li>穿衣服</li>
<li>刷牙</li>
<li>洗脸</li>
<li>拖地</li>
</ul>
14.<form>
表单
<form action="#" method="get">
username<input name="username"><br>
password<input type="password"name="password">
<input type="submit" value="login">
</form>
15.H5的注册案例
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<form action="#" method="get">
<table align="center" bgcolor="" border="1">
<tr>
<td>
username
</td>
<td>
<input type="text" name="username" placeholder="please input">
</td>
</tr>
<tr>
<td>
password
</td>
<td>
<input type="password" name="password"placeholder="please input">
</td>
</tr>
<tr>
<td>
email
</td>
<td>
<input type="email" name="email"placeholder="please input">
</td>
</tr>
<tr>
<td>
name
</td>
<td>
<input type="text" name="name"placeholder="please input">
</td>
</tr>
<tr>
<td>
phoneNo
</td>
<td>
<input type="tel" name="phoneno"placeholder="please input">
</td>
</tr>
<tr>
<td>
sex
</td>
<td>
<input type="radio" name="female"placeholder="please input">female
<input type="radio" name="female"placeholder="please input">male
</td>
</tr>
<tr>
<td>
birthday
</td>
<td>
<input type="datetime-local" name="birthday"placeholder="please input">
</td>
</tr>
<tr>
<td>
resure
</td>
<td>
<input type="text" name="resure"><img sizes="20" width="100" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.eaeOunC0HJmzAA0M9fU1LQAAAA?w=276&h=149&c=7&r=0&o=5&dpr=1.25&pid=1.7">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="submit">
</td>
</tr>
</table>
</form>
</body>
</html>