Re: Empty link



/Gus Richter/:

> It would seem that we are asking for mediation on an issue which is
> regarding an OP asking for:
> "A method to have a linkable banner image on every page,
> but without the IMG element coded on every page."

The thing was about not putting anything - using the style*** only,
but because UAs don't have good (pretty much no) support for generated
content we have to put something anyway, then let it be appropriate and
that's what our discussion is about - the appropriatenes of the "empty
link".

> Stanimir's contention is that it is invalid because there is no content
> in the Anchor.

I didn't say invalid - I've said it is bad in the means not
appropriate. I've used "invalid" only in my first reply regarding the
example you've given:

<a><div></div></a>

> The other point of contention regarding the below code immediately after
> BODY (using a transparent image) as:
>
> <a href="/index.php"><img id="banner" alt=""
> src="images/banner_background.gif "/></a>
>
> Stanimir says that it is valid.

It is valid in this context free form. The thing that it must be
contained in a block element to validate against HTML 4 Strict DTD is
another thing which we don't discuss, I think.

.


Quantcast