SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Form Validation
-
Sep 29, 2006, 12:05 #1
- Join Date
- Mar 2005
- Location
- Saudi Arabia
- Posts
- 1,724
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Form Validation
Do i have to wrap every form element and its label in a block-level element in order for the code to validate? If so, which element should i use? div?
-
Sep 29, 2006, 13:25 #2
- Join Date
- Feb 2003
- Location
- Slave I
- Posts
- 23,424
- Mentioned
- 2 Post(s)
- Tagged
- 1 Thread(s)
<fieldset>
And using only fieldset should suffice.
-
Sep 29, 2006, 23:40 #3
- Join Date
- Mar 2005
- Location
- Saudi Arabia
- Posts
- 1,724
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
So i shall do it with fieldset and hide the border with CSS, no?
-
Sep 30, 2006, 00:11 #4
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
A FIELDSET is meant for grouping related controls together. A FIELDSET must have a LEGEND as its first child. Sometimes I prefer to use a DIV instead, if I don't want borders and a legend. Especially for containing things like buttons.
Birnam wood is come to Dunsinane
Bookmarks