Results 1 to 3 of 3
Thread: Correct HTML for a complex form
Nov 10, 2009, 08:00 #1
Correct HTML for a complex form
Hello I have to write a form for people to submit their CV on. I have to include the schools they went to, what they studied, at each school, and the grades for each subject.
My first thought was a table, because that's how you would usually display this data when its not a form like so...
<table> <tr> <td></td> <th>School/College/University</th> <th>Subjects</th> <th>Grades</th> </tr> <tr> <th rowspan="3">School 1</th> <td rowspan="3">Hogwarts</td> <td>Nice Spells</td> <td>A</td> </tr> <tr> <td>Nasty Spells</td> <td>B</td> </tr> <tr> <td>Healing Spells</td> <td>C</td> </tr> <tr> <th>School 2</th> <td>University of Jumping</td> <td>Skipping</td> <td>2.1 Honours</td> </tr> </table>
Nov 10, 2009, 16:20 #2
- Join Date
- Mar 2009
- Melbourne, AU
- 389 Post(s)
- 5 Thread(s)
Nov 11, 2009, 10:18 #3
- Join Date
- Sep 2005
- Durham, NC
- 5 Post(s)
- 0 Thread(s)
This is called a 'complex table' so maybe skim W3C guidelirnes. http://www.w3.org/TR/REC-html40/struct/tables.html
You will need to use the scope element, I believe. I would wrap the label around the headers. I tried to look up examples of this, but nothing for a form.