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

Received on Friday, 15 August 1997 11:38:25 UTC