W3C home > Mailing lists > Public > www-validator@w3.org > November 2004

Re: validator complains about </form> tag not opened

From: David Dorward <david@dorward.me.uk>
Date: Fri, 12 Nov 2004 14:31:19 +0000
To: Kelsang Tsenle <kelsang.tsenle@web.de>
Cc: www-validator@w3.org, david.dorward@sophos.com
Message-ID: <20041112143119.GC6594@us-lot.org>

On Thu, Nov 11, 2004 at 12:14:20PM +0100, Kelsang Tsenle wrote:
> www.dipankara.de/home/index.php
> 
> 'end tag for element "FORM" which is not open'

Under HTML rules:

 <FORM action=http:/

means

 <form action="http:"/

becuase you must quote attribute values if they contain characters
which are not alphanumeric, hyphens, periods, underscores or colons. A
slash is not one of those, therefore it must be outside the attribute
value.

And that means:

 <form action="http:"></form>

Thanks to weird short tag rules that I don't entirely understand.

Moral of the story? *Always* quote your attribute values.

-- 
David Dorward                                      http://dorward.me.uk
Received on Friday, 12 November 2004 14:31:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:15 GMT