![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Must <a name="foo"> be closed with </a> ? |
|
Must it have content? |
|
a name="foo" h2>Foo Is Good</h2> ( a likely location ) |
#3
| ||||
| ||||
|
|
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 |
|
Must it have content? No, however "User agents should be able to find anchors created by empty |
|
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 |
|
Mason C -- |
#4
| |||
| |||
|
|
Previously in comp.infosystems.www.authoring.html, "Mason A. Clark" masoncERASETHIS (AT) ix (DOT) netcom.com> said: Must it have content? Yes, as above. |
#5
| |||
| |||
|
|
On 7-7-2005 9:07, Mason A. Clark wrote: 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 |
#6
| |||
| |||
|
|
Previously in comp.infosystems.www.authoring.html, "Mason A. Clark" masoncERASETHIS (AT) ix (DOT) netcom.com> said: 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 ) How about: h2 id="foo">Foo Is Good</h2 |
#7
| ||||||
| ||||||
|
|
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 ) |
|
a name="foo"> </a> is ok but uses a line |
#8
| |||
| |||
|
|
On Thu, 07 Jul 2005 09:25:03 +0200, Roland <roland (AT) phony (DOT) biz> wrote: On 7-7-2005 9:07, Mason A. Clark wrote: 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." That's exactly what got me into this: - failure to find empty <a...></a H2 id="fooname" .. has been suggested. But the W3C site says: "However, browser support for ID link destinations is very poor, so A NAME will be needed for quite awhile. " At the moment I'm stuck with <a name="foo"> </a> and a line used for the space. |
#9
| |||
| |||
|
|
"However, browser support for ID link destinations is very poor, so A NAME will be needed for quite awhile. " |
#10
| |||
| |||
|
|
Mason A. Clark wrote: H2 id="fooname" .. has been suggested. But the W3C site says: "However, browser support for ID link destinations is very poor, so A NAME will be needed for quite awhile. " Can't say I've found a user agent yet that fails to find <a id="foo" name="foo"></a>. Anyone know which one would fail that? |
![]() |
| Thread Tools | |
| Display Modes | |
| |