tomtees — 2010-10-29T16:21:10-04:00 — #1
What do you call the thingies on an HTML Form where you enter data in some way shape or form?
What is the formal name for Text Boxes, List Boxes, Check Boxes, Radio Buttons, etc.
system — 2010-10-29T16:47:31-04:00 — #2
all of the above are valid
starlion — 2010-10-29T21:37:14-04:00 — #3
well i dont know that 'thingies' is a proper technical term.
I believe the phrase you are looking for is 'form fields'.
tomtees — 2010-10-29T21:39:26-04:00 — #4
Based on W3C, maybe Input Elements is the best term.
cydewaze — 2010-10-29T21:41:45-04:00 — #5
That's the term I've always used.
system — 2010-10-29T21:41:46-04:00 — #6
or even form controls - I'm not sure there is a "one size fits all" answer
starlion — 2010-10-29T21:44:16-04:00 — #7
Strictly speaking, input elements would be things contained within/defined by <input> tags. TextAreas and Select Boxes would be excluded from this definition.
system — 2010-10-29T21:53:18-04:00 — #8
:scratch: I'm not so sure.
I would have thought that textareas and select lists are still effectively inputs from the user, albeit the user input from select lists is limited to the list's options. But does it really matter? :rolleyes:
Maybe the easiest thing is to just collectively call them "form thingies" :lol:
starlion — 2010-10-29T22:07:54-04:00 — #9
Well if (as the original poster did) you're going to use the W3C standard, they define an "input element" as the attributes of the <input> tag. So by said standard, 'input elements' would be a collection of <input> tags.
tomtees — 2010-10-29T22:28:33-04:00 — #10
Well this is what W3C says...
HTML Forms - The Input Element
The most important form element is the input element.
The input element is used to select user information.
An input element can vary in many ways, depending on the type attribute. An input element can be of type text field, checkbox, password, radio button, submit button, and more.
system — 2010-10-29T22:31:48-04:00 — #11
the w3schools website is not run by the W3C and has nothing to do with it.
And in any case, those " w3c standards" are simply recommendations. They are not enforcable in any way.
starlion — 2010-10-29T22:42:53-04:00 — #12
Well the reason i said form fields, is because there is a container for elements in a form. It's called the <fieldset> tag. As in... a set of fields. in a form. Form... fields.
system — 2010-10-29T22:50:42-04:00 — #13
and there is nothing wrong with "form fields" just like there is nothing wrong with "form controls".
xhtmlcoder — 2010-10-30T07:56:51-04:00 — #14
The w3schools like with many of its markup examples/explanations or definitions are usually inaccurate or poorly defined. Using some of those form examples would also lead to invalid markup. And there is a difference between XHTML and HTML forms unlike what they say. :nono:
Form "controls", is the correct generic term used for; buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls and object controls and so forth.
Though typically if you use them in a sentence you would say which particular one you were talking about, e.g. checkboxes. If you were talking about a line of code you may then also refer to whether it was associated with INPUT, TEXTAREA or SELECT element, etc.
stomme_poes — 2010-11-02T10:07:46-04:00 — #15
When talking about screen readers, "form controls" includes legends and labels, which I'd think most developers wouldn't consider the same as inputs.
I personally say "form controls" and if I really mean only the actual inputs I will call them "inputs" (to include all types of form inputs).
The only reason to know which term is the "best" is to know which one you want to use when searching for something on teh googles.
system — 2010-11-02T17:15:37-04:00 — #16
xhtmlcoder — 2010-11-02T17:24:30-04:00 — #17
Probably the writing style is good but it is riddled with inaccurate information.
system — 2010-11-02T17:37:39-04:00 — #18
I always thought it is pretty accurate.
Can you post some links to pages where the info is innacurate and state what the coorect info should be.
xhtmlcoder — 2010-11-02T18:19:51-04:00 — #19
On that page; those are not samples of HTML markup.
Nitpicking: the forms should also contain a fieldset and legend or a block level element let alone labels. Labels are assigned for "form controls" that don't have their own 'text', i.e. INPUT
Yes, minor issues but worthy of note.
tomtees — 2010-11-02T21:24:54-04:00 — #20
I was asking because I was working on some Object-Oriented Programming (OOP) and I was looking for a good name to generically call those items.
For my need, it doesn't matter whether the terms being thrown around are HTML vs XHTML vs whatever.
next page →