H5弃用标签和属性

 弃用标签

font标签

<font color="red" size="5" face="楷体">白日依山尽,黄河入海流</font>
frameset、frame标签 frame.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">
<frameset rows="20%,*">
<frame name="top" src="top.html" />
<frameset cols="40%,*">
<frame name="left" src="left.html" />
<frame name="right" src="ch1.html" />
</frameset>
</frameset>
</html>

top.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=utf-8" />
<title>top</title>
</head>

<body bgcolor="#FFBFFF">
<h3 align="center">这是TOP</h3>
</body>
</html>

left.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=utf-8" />
<title>left</title>
</head>

<body bgcolor="#A3D1D1">
<ul>
<li><a href="ch1.html" target="right">第一章</a></li>
<li><a href="ch2.html" target="right">第二章</a></li>
<li><a href="ch3.html" target="right">第三章</a></li>
</ul>
</body>
</html>

ch1.html/ch2.html/ch3.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=utf-8" />
<title>ch1</title>
</head>

<body bgcolor="#FFDCB9">
<h3>这是第一/二/三章的内容</h3>
</body>
</html>

效果

H5弃用标签和属性

 

 

弃用属性(标红)

定义背景颜色:<body bgcolor="#FFDCB9"> 定义表格边框:<table border="1" width="300" cellpadding="0" cellspacing="0"> 定义文本对齐方式:<td align="left">姓名</td>  
上一篇:无缓冲区的注意事项


下一篇:指定位置输出字符串--PTA