I
Ian Davies
whats the syntax for a link to a bookmark on a page FROM A SEPARATE PAGE
thanks
ian
thanks
ian
<a href="http://example.com/separate-page.html#bookmark">Ian said:whats the syntax for a link to a bookmark on a page FROM A SEPARATE PAGE
Sid Ismail said:: whats the syntax for a link to a bookmark on a page FROM A SEPARATE PAGE
"The NAME attribute defines a destination for a link. For example, a
document containing..."
Quick - get here for the rest:
http://www.htmlhelp.com/reference/html40/special/a.html
Sid
dorayme said:Simplest is to use id:
<H1 ID=foo>My heading</H1>
instead of
<H1><A NAME=foo>My Heading</A></H1>
but some browsers (I forget which ones and how old) do not
understand it. The idea to use both to cover such situations
might seem silly to me (perhaps simpler to use name in that case)
but there may be additional benefits for id to do with scripts?
And to avoid - at least in a lot of modern browsers - unwanted
anchor behaviour...
Luigi Donatello Asero said:Which one is "strict"?
dorayme said:Ask a precise question. Or I won't put in a sweet word for you
with Heather...
Both are acceptable, just that the latter maybe preferred because youLuigi said:You wrote about the advantages/disadvantages
of using one of the following alternatives
<a name="..">description</a>
or <a id="..">description</a>
so I asked
whether the former or the latter complies with the requirements to validate
as HTML 4.01 strict.
Or are they both accepted?
Luigi Donatello Asero said:You wrote about the advantages/disadvantages
of using one of the following alternatives
<a name="..">description</a>
or <a id="..">description</a>
so I asked
whether the former or the latter complies with the requirements to validate
as HTML 4.01 strict.
Or are they both accepted?
dorayme said:<H1 ID=foo>My Heading</H1>
but some browsers (I forget which ones and how old) do not
understand it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.