一、HTML基础
1. HTML标题(h1-h6)
实例
<h1>heading</h1>
2.HTML段落(p)
<p>paragraph</p>
3.HTML链接(a)
<a href="www.baidu.com">This is a link</a>
4.HTML图像(img)
<img src="1.jpg" width="104" height="142"/>
5.HTML水平线(hr/)
<p>paragraph</p>
<hr/>
6.HTML注释
<!--This is a comment-->
7.HTML空行(不产生新段落)<br/>
8.HTML样式(style)
<h2 style="background-color:red">This is a heading</h2>
9.HTML格式化
10.HTML CSS
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
11.HTML列表
无序列表
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
有序列表
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
12.HTML空格
< >
13.HTML表单
文本输入
<input type="text" name="firstname">
单选按钮输入
<input type="radio">
提交按钮
<input type="submit">
14.下拉列表(select)
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
15.输入列表
1.输入类型:text
First name:<br>
<input type="text" name="firstname">
<br>
Last name:<br>
<input type="text" name="lastname">
2.输入类型:password
<form>
User name:<br>
<input type="text" name="username">
<br>
User password:<br>
<input type="password" name="psw">
</form>
3.输入类型:submit
<form action="action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>