关于遵循严格型DOCTYPE的XHTML中target的问题

1 view
Skip to first unread message

winsteps

unread,
Mar 15, 2005, 8:42:24 PM3/15/05
to guos...@googlegroups.com
我尝试着采用严格型DOCTYPE来构建一些简单的网页,在超链接的target问题上遇到一些困难。
虽然在蓝色和W3CN看到过阿捷提到过解决方法,那就是用target="new"来代替"_blank",但是即使是这样,它仍然无法通过标准校验。
想听听guoshuang的高见 :)

shuang guo

unread,
Mar 16, 2005, 12:46:36 AM3/16/05
to guos...@googlegroups.com
据我所知,就是这个 target="new"
能不能给个地址,我看一下源代码?

davidgu...@gmail.com

unread,
Mar 16, 2005, 12:59:09 AM3/16/05
to guos...@googlegroups.com
这是w3c的说明。严格的xhtml中没有
target这个属性,如果要用,只能使用 transitional 声明。

Why was the target attribute removed from XHTML 1.1?

It wasn't. XHTML 1.0 comes in three versions: strict, transitional, and
frameset. All three of these were deliberately kept as close as
possible to HTML 4.01 as XML would allow. XHTML 1.1 is an updated
version of XHTML 1.0 strict, and no version of HTML strict has ever
included the target attribute. The other two versions, transitional and
frameset, were not updated, because there was nothing to update. If you
want to use the target attribute, use XHTML 1.0 transitional.

http://www.w3.org/MarkUp/2004/xhtml-faq#target

winsteps

unread,
Mar 16, 2005, 7:03:23 PM3/16/05
to guos...@googlegroups.com
:)
可能是阿捷写这篇文章时没有注意到经典样式表大赛的XHTML文档都是遵循strict
DOCTYPE的,谢谢guoshuang了。

http://www.w3cn.org/article/tips/2004/99.html

Reply all
Reply to author
Forward
0 new messages