Re: Why <FORM> is a block level element?

Neil St.Laurent (neil@bigpic.com)
Fri, 15 Aug 1997 09:41:05 -0600


Message-Id: <199708151536.JAA01292@underworld.bigpic.com>
From: "Neil St.Laurent" <neil@bigpic.com>
To: Peter Flynn <pflynn@imbolc.ucc.ie>
Date: Fri, 15 Aug 1997 09:41:05 -0600
CC: msa@hemuli.tte.vtt.fi, www-html@w3.org
Subject: Re: Why <FORM> is a block level element?

> But HTML 4 allows the data-collection elements to appear OUTSIDE
> the scope of FORM. What does this mean?

There are a couple reasons for this:

1.  There are many places where the form elements such as INPUT, 
OPTION, etc... would be used not in the context of a form.  With the 
introduction of script extensions the elemetns action members can be 
used for various purposes that do not need the presence of a form 
per se.

2. SGML has a severe restriction about content models.  You can only 
allow elements in one level.  Example:
<FORM><P><INPUT>
You can't say that <INPUT> can appear inside <P> if <P> is inside a 
<FORM>.  The model allows only for <INPUT> to check one element up.
This is a hinderance in SGML, and unfurtunately will be extended to 
XML...

 
__
| Mortar: Advanced Web Development <http://bigpic.com/mortar/>
| Neil St.Laurent  neil@bigpic.com
| Big Picture Multimedia