W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

RE: Good or just Valid HTML?

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Tue, 28 Mar 2000 01:44:39 -0500
To: <html-tidy@w3.org>
> I have run into a problem I need to get clear in my mind.
> Tidy allows (and creates) the following URL formats.
> The W3C validator passes the following URL formats.
> <a href=
> "http://www.xxxxxxx.com/yyyyyy/zzzzzz.htm">
> <a
> href="http://www.xxxxxxxl.com/yyyyyy/zzzzzz.htm">
> Are the above valid but bad HTML?

After the < and the element name, you can have any whitespace before and after
the attribute name, before and after the = sign, or between the attribute value
and the closing > of the start tag.

Bad?  How so?  The following is perfectly valid:

            href         =


If by bad, you mean hard-to-read, well yes -- in that example.  But in the case
of long URLs, it sometimes makes sense to linebreak before or after attributes,
since you don't want to break the URL itself.

Received on Tuesday, 28 March 2000 01:45:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC