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

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 UTC