使用HTML 4.01 Transitional的原因 [英] Reasons to use HTML 4.01 Transitional

查看:209
本文介绍了使用HTML 4.01 Transitional的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用严格或过渡HTML创建网页。


严格的DOCTYPE是:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"

" http://www.w3.org/TR/html4/strict.dtd">


和过渡期:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"

" http://www.w3.org/TR/html4/loose.dtd">


根据这份文件(1999年编写):
http://www.w3.org/TR/ html401 / sgml / loosedtd.html


" HTML 4.01 Transitional DTD ...包括W3C期望的演示属性和

元素淘汰作为样式表的支持逐渐成熟。


我的问题是:


有人可以总结为什么会使用过渡HTML的原因

超过s trict?


W3C计划逐步淘汰的元素,还有任何共同点吗?

使用?

谢谢你提前。

A web page can be created using either strict or transitional HTML.

The DOCTYPE for strict is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

And transitional:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

According to this document (written in 1999):
http://www.w3.org/TR/html401/sgml/loosedtd.html

"the HTML 4.01 Transitional DTD ... includes presentation attributes and
elements that W3C expects to phase out as support for style sheets matures."

My questions are:

Can someone please summarize reasons why transitional HTML would be used
over strict?

Of the elements which the W3C plans to phase out, are any still in common
use?
Thanks in advance.

推荐答案

deko写道:
deko wrote:

有人可以总结一下转换HTML的原因是什么?严格使用

Can someone please summarize reasons why transitional HTML would be
used over strict?



当你在遗留页面上工作时使用Transitional,

或许做一些小的更新,你没有时间在整个页面中删除所有那些

傻< fonttags。

在创建新文档时使用Strict,使用CSS进行演示和

不是1995式的编码。


-

-bts

-Motorcycles无视重力;汽车只是吮吸

Use Transitional for those times you are working on a legacy page,
perhaps doing minor updates, and you don''t have time to remove all those
silly <fonttags throughout the page.

Use Strict when creating new documents, using CSS for presentation and
not 1995-style coding.

--
-bts
-Motorcycles defy gravity; cars just suck


>有人可以总结一下原因,为什么过渡HTML将是
>Can someone please summarize reasons why transitional HTML would be

>用过严格?
>used over strict?



在旧版页面上使用Transitional,

或许做一些小更新,你没有时间在整个页面中删除所有那些

傻< fonttags。

在创建新文档时使用Strict,使用CSS进行演示和

不是1995式的编码。


Use Transitional for those times you are working on a legacy page,
perhaps doing minor updates, and you don''t have time to remove all those
silly <fonttags throughout the page.

Use Strict when creating new documents, using CSS for presentation and
not 1995-style coding.



我一直在寻找HTML严格不支持的属性的完美摘要。

正如你所提到的,< ; fontis one。


我唯一想要使用的是< uso人们在博客网站上发布回复

可以用下划线标记他们的评论文本。


关于遗留站点,IE7显然必须在这里走一条细线,以免打破在IE6中正常显示的网站
仍然将IE7推向

标准合规性。据我了解,IE7会将页面解释为严格

即使DOCTYPE指定过渡,只要包含URL。

I''ve been looking for a good summary of attributes not supported in HTML strict.
As you''ve mentioned, <fontis one.

The only one I might want to use is <uso folks posting replies on a blog site
can mark up their comments with underlined text.

In regard to legacy sites, IE7 apparently had to walk a fine line here so as not
to break sites that display properly in IE6, yet still move IE7 towards
standards compliance. As I understand it, IE7 will interpret a page as strict
even if the DOCTYPE specifies transitional, as long as the URL is included.

deko写道:
deko wrote:

据我所知,IE7会将页面解释为严格,即使

DOCTYPE指定过渡,只要包含URL。
As I understand it, IE7 will interpret a page as strict even if the
DOCTYPE specifies transitional, as long as the URL is included.



在我看来这是一个错误。


(不,我没有IE7 .. 。)


-

-bts

-Motorcycles无视重力;汽车只是吮吸

That would be a mistake, in my opinion.

(No, I don''t have IE7...)

--
-bts
-Motorcycles defy gravity; cars just suck


这篇关于使用HTML 4.01 Transitional的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆