Re: Form "field" Elements

+1

<form>
  <p>
    <label>Name</label>
    <input />
  </p>
</form>

has always felt semantically awkward to me


On Tue, Jun 10, 2014 at 11:05 AM, Mr. Slayer <email@mrslayer.com> wrote:

> I recently submitted my first suggestion to the living standard that is
> HTML, recommending that a `field` element be added for describing form
> controls.  You can see my submission here:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=26009
>
> A commenter suggested I post to this mailing list in order to get
> additional feedback.
>
> Currently, many developers utilize paragraph or list item elements in
> order to differentiate “questions” on a form. A `field` element would
> eliminate the ambiguity and ensure that paragraphs are paragraphs, list
> items are list items, and fields are fields.
>
> This has an added benefit of making the fieldset element more logical as
> it truly becomes a “set of field elements”.
>
> Thank you for your consideration.
>
>

Received on Tuesday, 10 June 2014 17:43:17 UTC