32. Netscape and Internet Explorer 早在1997年,有一个通用的惯例,Netscape浏览器使用Javascript,IE使用Jscript(一种类似于Javasrcipt的脚本语言)。Javasrcipt只能运行在Netscape,而微软的ActiveX和Jscript只能运行在IE。只能为不同的浏览器采用不同的代码去适应,这些事情是为3.0版本浏览器做的,1997年下半年的时候,Netscape和IE都推出了4.0版本浏览器,他们各自吹嘘自己的浏览器有强大的Dhtml(动态的html),但他们的浏览器完全不兼容,更不用说不知名的浏览器了,而且Netscape和IE跟他们3.0的版本也无法兼容,想让自己的网站在几个不同版本的浏览器中同时使用的话就要做几个不同的版本,每个功能都要做几个不同的版本去适应不同的浏览器,开发成本至少增加了25%;所以一些开发者限制他们的网站只适应其中一个版本的浏览器。而且网站随时面临着过时的命运和被淘汰的怪圈。
58. 为页面添加正确的DOCTYPE1)过渡型(Transitional ) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2)严格型(Strict ) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">3)框架型(Frameset ) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
73. <p >Love <strong>life</strong>, love <strong>design</strong>, Web standards say in the end</p><p>—Adam</p>难以设定样式区别于页面上的其他内容
74. 无法为引用文本提供语义和结构<div class=“blockquote ”> <p id="quote">Love <strong>life</strong>, love <strong>design</strong>, Web standards say in the end</p> <p id="author">—Adam</p></div>添加唯一的类方便样式设定<blockquote cite="http://www.somesite.com/path/to/page.html"> <p id="quote">Love <strong>life</strong>, love <strong>design</strong>, Web standards say in the end</p> <p id="author">—Adam</p></blockquote>blockquote是W3C为引用文本专门设计的元素,提供了语义和结构
76. <span class="title">Mozilla Firefox</span><p>The use of the Firefox open source web publishing engine Gecko, Gecko browser can allow as much as possible in accordance with the standard to show the contents of the page.</p>CSS禁用时,会跟普通文本一样没有区别
77. 搜索引擎不会关注<span>标记的标题<p><b>Mozilla Firefox</b></p><p>The use of the Firefox open source web publishing engine Gecko, Gecko browser can allow as much as possible in accordance with the standard to show the contents of the page.</p>CSS禁用时,加粗显示
79. 无法针对这些文本设置单独的样式<h1>Mozilla Firefox</h1><p>The use of the Firefox open source web publishing engine Gecko, Gecko browser can allow as much as possible in accordance with the standard to show the contents of the page.</p>表达的文本标题的含义
82. <p>Hello World,my name is <i>Adam</i>.</p><p>Hello World,my name is <b>Adam</b>.</p><p>Hello World,my name is <em>Adam</em>.</p><p>Hello World,my name is <strong>Adam</strong>.</p>
83. <p>Hello World,my name is <span>Adam</span>.</p><p>Hello World,my name is <em><strong>Adam</strong></em>.</p><p>Hello World,my name is <strong class=“italic”>Adam</strong>.</p><p>Hello World,my name is <em class=“bold”>Adam</em>.</p>
84. <p>Hello World,my name is <abbr>Adam</abbr>.</p>A-d-a-m<p>Hello World,my name is <acronym>Adam</acronym>.</p>Adam