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>toptitle>
head>

<body bgcolor="#FFBFFF">
<h3 align="center">这是TOPh3>
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>lefttitle>
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>ch1title>
head>

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

效果

H5弃用标签和属性_第1张图片

 

 

弃用属性(标红)

定义背景颜色:bgcolor="#FFDCB9">
定义表格边框:border="1" width="300" cellpadding="0" cellspacing="0">
定义文本对齐方式:
 

你可能感兴趣的:(H5弃用标签和属性)

align="left">姓名