W3C home > Mailing lists > Public > www-validator@w3.org > May 2009

Re: [VE][65] Add Subject Here

From: Jens Meiert <jens@meiert.com>
Date: Sun, 3 May 2009 11:28:07 +0200
Message-ID: <9fbcac550905030228x5d841075i8d0ed824656fb8de@mail.gmail.com>
To: Darko Rakusic <darkorakusic@gmail.com>
Cc: www-validator@w3.org
> Validating http://serbianforum.org/strani/2006-300-400mb-filmovi..html
> Error [65]: "document type does not allow element X here; missing one of Y
> start-tag"
> I don't understand what is not good here.

An anchor element (“a”) cannot contain other anchor elements; just
“merge” respective links, they seem to point to the same destination

In the case you’re referring to, the following would make both the
“document type does not allow element "a" here” and, as David already
pointed out, “"onload" exists, but can not be used for this element”
messages disappear:

<a href="http://4.bp.blogspot.com/_9HU9AtbToFs/SKaUWhItleI/AAAAAAAACJY/oUMzuz6ONVQ/s400/Batman+Begins+%282005%29+poster.jpg"
target="_blank" rel="gallery.posts"><img
border="0" alt="Click the image to open in full size."
class="tcattdimgresizer" /></a><br />

As a bonus, maybe you don’t need @target and @border, can improve the
@alt text, and come up with a more understandable and maintainable
class name [1] (feel free to follow up off-thread if you need any
advice on that).

[1] http://meiert.com/en/blog/20080812/best-practice-ids-and-classes/

Jens Meiert
Received on Sunday, 3 May 2009 09:29:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:12 UTC