XHTML 1.0 Transitional vs XHTML 1.0 Strict?

て烟熏妆下的殇ゞ 提交于 2019-12-06 00:53:00

问题


In terms of SEO, for client point of view, should I use XHTML 1.0 Transitional or XHTML 1.0 Strict?

Why some people still use Transitional?

Will we lose something if We use Transitional over Strict?


回答1:


XHTML Strict forces you to use semantic markup, where as Transitional is a bit more flexible and still allows you to use legacy presentational elements like <font> and <center>.

People still use Transitional to maintain support older markup, but it doesn't make any difference to SEO. Strict is considered better for encouraging more accessible XHTML and better separation of content and presentation.




回答2:


In terms of SEO, no difference whatsoever.




回答3:


I don't think there is any impact of using one or the other : what really matters is content, not (X)HTML (Strict/Transitional).




回答4:


Echo comments that shouldn't make a difference.

In my opinion its better to pick one and make sure your site validates against it.

Also note that can make ASP.NET spit out strict by the following in the web.config

<system.web> <xhtmlConformance mode="Strict" /> </system.web>




回答5:


This is a good article explaining differences: http://24ways.org/2005/transitional-vs-strict-markup



来源:https://stackoverflow.com/questions/1885906/xhtml-1-0-transitional-vs-xhtml-1-0-strict

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!