HTML中不常用的标签学习,以下标签只需要记住大致的功能即可。不需要死记硬背。
一个HTML的基本标签:
<!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=gb2312" />
<link href="CSS的路径" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="JS路径"></script>
<title>无标题文档</title>
<meta name="keywords" content="关键词内容" />
<meta name="description" content="网页描述的内容" />
<meta http-equiv="refresh" content="10;URL=http://www.test.me" />
</head>
<body>
正文部分
</body>
</html>
框架:
<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="网页文件路径或者一个网址" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="80,*" frameborder="no" border="0" framespacing="0">
<frame src="网页文件路径或者一个网址" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="网页文件路径或者一个网址" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>当浏览器不支持框架技术时,显示此处的内容,上面的frameset不会生效。</body></noframes>
载入FLASH影片等多媒体元素的标签:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32">
<param name="movie" value="影片文件的路径" />
<param name="quality" value="high" />
<embed src="影片文件的路径" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>
热点:
<img src="图片路径" alt="" width="1866" height="779" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="807,25,961,102" href="#" alt="" />
<area shape="circle" coords="1104,79,68" href="#" alt="" />
<area shape="poly" coords="1306,39,1447,6,1494,80,1304,38" href="#" alt="" />
</map>