1 设置解码类型: <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
2 设置搜索关键字:<meta name="keywords" content="java,net,C++" /> 每个关键字占一定权值
3 描述语句 :<meta name="description" content="学习javaWeb,天天向上"/>
4 常用标签
标题(h1~h6) 水平线(hr) 段落(p)
段落缩进(blockquote) 上下标(sup和sub) 原样输出(pre)
有序列表【可以设置type序号类型】(ol li) 无序列表(ul li)【可以设置type空心圆等类型】
项目列表标签(dl dt dd) 行内标签(span) 块标签<div> 在html中使用少,css中用得多
<a href="index.html" target="_blank">超链接</a>
常见的协议:
file:// 本地文件协议(本地或局域网) 默认
http:// http协议(执行流程) 通常连接到域名或IP地址
thunder: 迅雷下载软件的协议
mailto: 调用本地的发送邮件的客户端软件
打锚点 同一页: <a name="锚点名称"></a>
<a href="#锚点名称">内容</a>
打锚点 不同页: <a name="锚点名称"></a>
<a href="链接页#锚点名称">内容</a>
图片链接: <img src="2.jpg" alt="这是一张图片" width="100px" height="100px" title="提示文字"/>
热点: <map name="Map" id="Map">
<area shape="rect" coords="196,338,301,398" href="04.html" target="_self" />
<area shape="circle" coords="139,191,45" href="03.html" target="_blank" />
</map>
转义字符: <h3>标题3</h3>
商标<sup>®</sup> <br/> 版权所有<sup>©
表格 caption 标题
<thead> <tbody> <tfoot>默认加
隐藏域
5 框架:<frameset rows="10%,*,10%">
<frame src="header.html" name="header"/>
<frameset cols="20%,*">
<frame src="menu.html"/>
<frame src="main.html" name="main"/>
</frameset>
<frame src="footer.html"/>
</frameset>
必须放在head中 <a href="student.html" target="main">学生管理</a> 链接在main中显示