Head中的<meta>标签
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="author" content="WangMou" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expire" content="0" />
<meta http-equiv="keywords" content="关键字,搜索索引" />
<meta http-equiv="refresh" content="5;URL=http://www.baidu.com" />
<title>文档标题</title>
</head>
Body中字体的显示效果
<body>
<b>粗体显示</b><br />
<i>斜体显示</i><br />
<u>下划线显示</u><br />
<del>删除效果</del><br />
<pre>标签
<hr />
<pre>
public class Test{
public static void main(String args[]){
System.out.println("<pre>标签保持原格式");
}
}
</pre>
<a>标签,超链接和锚点
<hr />
<a href="#lable">跳到锚点的定义</a><br />
<a name="lable">定义锚点</a><br />
<a href="mailto:qq@qq.com?suject=AboutHTML">邮件链接</a>
列表标签<ol><ul><li>
<hr />
<ul>
<li>列表</li>
<li>标签</li>
<li>无序</li>
</ul>
<ol>
<li>列表</li>
<li>标签</li>
<li>有序</li>
</ol>
<table>
<hr />
<table border="1">
<tr>
<th>第一列</th>
<th>第二列</th>
</tr>
<tr>
<td>第一列下面</td>
<td>第二列下面</td>
<td rowspan="2">TRY</td> <!--注意表的分割地点-->
</tr>
<tr>
<td>再下面</td>
<td>再下面</td>
</tr>
</table>
<hr />
<table border="1">
<tr>
<th>第一列</th>
<th>第二列</th>
</tr>
<tr>
<td colspan="2">第一行下面</td>
</tr>
<tr>
<td colspan="2">再下面</td>
</tr>
</table>
<hr />
<table border="1" bordercolor="#FF0000" style="border-collapse:collapse">
<tr>
<td>aaaaaa</td>
<td>bbbbbb</td>
<td rowspan="2">cccccc</td>
</tr>
<tr>
<td colspan="2">dddddd</td>
</tr>
</table>
<form>表单
<form>
账号<input type="text" name="id" method="post"/><br />
<!--可加入一下三个属性,默认值,宽度,和最大长度。value="333" size="30" maxlenth="10"-->
密码<input type="password" name="pws" /><br />
性别
男<input type="radio" name="sex" value="0" checked="checked" />
女<input type="radio" name="sex" value="1" /><br />
选择
方便面<input type="checkbox" name="food" value="0" checked="checked" />
火腿肠<input type="checkbox" name="food" value="1" checked="checked" />
好丽友<input type="checkbox" name="food" value="2" />
萨琪玛<input type="checkbox" name="food" value="3" /><br />
复选框
<select name="drink"> <!--加上multiple,可以多选-->
<option value="0">矿泉水</option>
<option value="1">可乐</option>
<option value="2" selected="selected">雪碧</option>
<option value="3">奶茶</option>
</select><br />
<input type="hidden" name="hid" value="50" /><!--value是返回值--><br />
<textarea name="text" rows="5" cols="40"></textarea>
<input type="reset" value="重置" />
<input type="submit" name="提交" />
<!--可以使用图片提交,而且可以知道点击图片上面以图片左上角为0,0的坐标<input type=image src="Blue hills.jpg" width="20" height="20" />-->
</form>
<frame>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gbk" />
<meta http-equiv="author" content="WangMou" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expire" content="0" />
<meta http-equiv="keywords" content="关键字,搜索索引" />
<meta http-equiv="refresh" content="5;URL=http://www.baidu.com" />
<title>文档标题</title>
</head>
<frameset rows="20%,80%">
<frame src="http://www.baidu.com" />
<frameset cols="20%,80%">
<frame src="http://www.baidu.com" />
<frame src="http://www.baidu.com" />
</frameset>
</frameset>
<body>
</body>
</html>