I need a few input elements, but their values won't be submitted anywhere - they're just going to be manipulated by some client-side JavaScript. Do I have to place them in a <form>
to have legit HTML, or can they just be free-standing?
Asked
Active
Viewed 2,312 times
15

Claudiu
- 224,032
- 165
- 485
- 680
-
Possible duplicate of [Is well formed without a – user247702 Jul 19 '16 at 11:40
2 Answers
7
For additional information, in xhtml strict you have to place in one of these elements: "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset"

Jaroslav Moravec
- 428
- 3
- 6
- 18