XHTML 1.0 Transitional vs XHTML 1.0 Strict?

2020-07-11 08:21发布

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?

标签: xhtml
5条回答
在下西门庆
2楼-- · 2020-07-11 08:55

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.

查看更多
ゆ 、 Hurt°
3楼-- · 2020-07-11 08:58

In terms of SEO, no difference whatsoever.

查看更多
老娘就宠你
4楼-- · 2020-07-11 09:00

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楼-- · 2020-07-11 09:06

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

查看更多
等我变得足够好
6楼-- · 2020-07-11 09:20

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

查看更多
登录 后发表回答