[thelist] Re : in form, do NOT need div, can use plain old <P> !

Michael Mell mike at nthwave.net
Sun Jul 7 17:45:01 CDT 2002


Until one of my client's other vendors busted me for invalid html, I had
many habits that I "had been doing for years" that were invalid, and
therefore wrong. Now I validate :-)

I'm also more into quoting sources to back up opinion.
Here is an authoritative source which says form control elements
(<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">)
belong %inline
(<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; |
%formctrl;">)

http://www.w3.org/TR/REC-html40/sgml/dtd.html#inline


m

Techwatcher wrote:

> Really, folks, let's not get carried away with these div tags!
>
> > >Do I understand you correctly? I've attempted this (along with
> > >Ed's suggestion), and it seems to work ... sort of. Because I
> > >am not the one adding the input tag to the form (in fact, PHP
> > >is auto-generating this tag entirely absent of my assistence), I
> > >am unable to control the placement of this tag inside the
> > >HTML ... and therefore I cannot wrap it in a <div> the way it
> > >so desperately needs to be. Is there a way to turn this
> > >"feature" in PHP off, or am I stuck with non-validating forms?
> > >
> >
> > Anyway, the <div> does not have to wrap around *each* <input /> just
> > after the <form> and before the </form>
> a note of clarification, in case that helps
> > TjL
>
> Really, folks, no need to get carried away... I've been grouping
> <.input. > tags within paragraph tags for years!
>
> Cheers --
> Carol Stein
> techwatcher at accesswriters.com
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

--
mike[at]nthwave.net
llemekim         YahooIM
415.455.8812     voice
419.735.1167     fax





More information about the thelist mailing list