J
Jani
Now to dump
the empty A element... Simply do this:
<body id="top">
...
To the <a href=#top">top</a> of the page because I cannot find the
"home" key!
or fill it with ?
Now to dump
the empty A element... Simply do this:
<body id="top">
...
To the <a href=#top">top</a> of the page because I cannot find the
"home" key!
Jani said:or fill it with ?
Missing the point entirely. Why add an empty element that serves no
purpose other than supply a anchor when toy can use an existing element
and create your anchor with an ID. That is like using empty <p></p> or
table rows for creating padding!
I remember this "era", when they used a small transparent gif 1x1 px
to achieve some effect. LOL
Neredbojias said:I still use that, and it _is_ necessary.
If you find it necessary, you are probably doing something wrong, or
at least inefficiently. I haven't used spacer gifs for about 10 years
now.
Jonathan N. Little said:While you *can* use an empty A element for an anchor, that is just soooooo
last millennium! Use an ID attribute and forego the superfluous empty
element.
Now I keep seeing this thought the thread, you cannot have a digit for the
leading character for an anchor identifier:
http://www.w3.org/TR/html4/types.html#h-6.2
Basic HTML data types
So you could have it a "anchor0" or "top" may be simpler. Now to dump the
empty A element... Simply do this:
<body id="top">
...
To the <a href=#top">top</a> of the page because I cannot find the "home"
key!
Hah, I knew somebody would take the bait...
Not at all, Holmes. I'm not using it as a spacer gif but as the last
image in a container to "finalize" justification of the previous (last)
line of images. There is no other way to do that I'm aware of.
On http://www.youtube.com they use it at the moment. If you want to
save the logo on the top left - you get a 1x1 px gif:
http://s.ytimg.com/yt/img/pixel-vfl73.gif
I haven't looked but it sounds like Youtube is using it as a cover
(layer-over) for their logo image via css.
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.