< a name = foo>关? [英] <a name=foo> close?
问题描述
这似乎太简单了,我找不到答案。
必须< a name =" foo">用< / a>关闭?
必须有内容吗?
W3C说内容不能阻止所以如果:
< ; a name =" foo">
< h2> Foo Is Good< / h2> (一个可能的位置)
更接近的地方< / a> go?
< a name =" foo">& nbsp;< / a>没问题但是用了一行
< h2> Foo很好< / h2>
Mason C
This seems too simple by I can''t find the answer.
Must <a name="foo"> be closed with </a> ?
Must it have content?
W3C says the content cannot be block so what if :
<a name="foo">
<h2>Foo Is Good</h2> ( a likely location )
Where does the closer </a> go?
<a name="foo"> </a> is ok but uses a line
<h2>Foo Is Good</h2>
Mason C
推荐答案
以前在comp.infosystems中。 www.authoring.html ,Mason A. Clark
< ma ************* @ ix.netcom.com>说:
Previously in comp.infosystems.www.authoring.html, "Mason A. Clark"
<ma*************@ix.netcom.com> said:
必须< a name =" foo">用< / a>关闭?
是的,根据DTD。
必须有内容吗?
是的,如上所述。
< a name =" foo">
< h2> Foo很好< / h2> ; (可能的位置)
Must <a name="foo"> be closed with </a> ?
Yes, according to the DTD.
Must it have content?
Yes, as above.
<a name="foo">
<h2>Foo Is Good</h2> ( a likely location )
怎么样 :
< h2 id =" foo"> Foo很好< / h2>
-
Mark Parnell
http://www.clarkecomputers.com.au
On 7- 7-2005 9:07,Mason A. Clark写道:
On 7-7-2005 9:07, Mason A. Clark wrote:
这似乎太简单了,我找不到答案。
必须< a name =" ; FOO">用< / a>关闭?
对于HTML 4.01:是,开始标记:必填,结束标记:必需,请参阅
< http://www.w3.org/TR/html401/struct/ links.html#edef-A>它必须有内容吗?
不,但是用户代理应该能够找到由空创建的锚点
W3C说内容不能阻止如果:
< a name =" foo">
< / a> < h2> Foo很好< / h2> (一个可能的位置)
更接近的地方< / a> go?
< a name =" foo">& nbsp;< / a>没关系,但是用了一行
< h2> Foo好了< / h2>
怎么样
< h2>< a name =" foo"> Foo很好< / a>< / h2> Mason C
This seems too simple by I can''t find the answer.
Must <a name="foo"> be closed with </a> ? For HTML 4.01: Yes, "Start tag: required, End tag: required", see
<http://www.w3.org/TR/html401/struct/links.html#edef-A> Must it have content? No, however "User agents should be able to find anchors created by empty
A elements, but some fail to do so."
W3C says the content cannot be block so what if :
<a name="foo"> </a> <h2>Foo Is Good</h2> ( a likely location )
Where does the closer </a> go?
<a name="foo"> </a> is ok but uses a line
<h2>Foo Is Good</h2>
How about
<h2><a name="foo">Foo Is Good</a></h2> Mason C
-
问候,
Roland de Ruiter
` ___ ___
` / __ / w_ / / __ /
/ \ / _ / / \
--
Regards,
Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
以前在comp.infosystems中。 www.authoring.html ,Mark Parnell
< we ******* @ clarkecomputers.com.au>说:
Previously in comp.infosystems.www.authoring.html, Mark Parnell
<we*******@clarkecomputers.com.au> said:
以前在comp.infosystems中。 www.authoring.html ,Mason A. Clark
< ma ************* @ ix.netcom.com>说:
Previously in comp.infosystems.www.authoring.html, "Mason A. Clark"
<ma*************@ix.netcom.com> said:
必须有内容吗?
是的,如上所述。
Yes, as above.
我的坏。不,它没有内容。
-
Mark Parnell
http://www.clarkecomputers.com.au
这篇关于< a name = foo>关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!