We've talked quite a bit about attributes, but those attributes related to the overall presentation of the table. In addition to changing the presentation of the table, you can also affect the presentation of each Table Data (<TD>) cell with the following attributes:
merging of cells across a row
merging of cells across a column
alignment of text within each cell
The structure of these attributes is as follows:
<TABLE align="align_value" valign="v_align_value"
rowspan="numer_of_rows" colspan="number_of_columns>
rowspan = the number of Table Data
cells to merge down a row
colspan = the number of Table Data
cells to merge across a column
align = "left" or "center"
or "right" or "justify"
valign = "top" or "middle"
or "bottom"
We'll leave the align attributes for the next page...let's tackle the rowspan & colspan attributes first.
In the HTML TABLE world, spanning simply means merging cells.
|
|
|
|
|
|
|
these two cells have been merged with colspan = "2" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The value passed to the span attributes indicates the number of cells to span (including the current cell). Thus, the colspan="2" attribute specifies the spanning of 2 columns:
<tr>
<td> column 1
<td colspan="2">these two cells have been merged with colspan
= 2 column 2 & 3
<td> column 4
</tr>
Notice the table above is a 4-row, 4-column table, but there are only 3 Table Data cell (<TD>) definitions in this row. That is because you are spanning the second <TD> tag across two columns, virtually taking the place of two <TD> tags. In fact, if you try to add the fourth <TD> tag, guess what happens ... you got it! The browser creates a 5-column table.
The same is true with the rowspan, only it affects multiple rows. Thus a table cell with the attribute "rowspan="3" (as above), means that the next three Table Row <TR> definitions must have only three Table Data cells in each row (i've organized the tags horizontally for easier reading...which, by the way, is perfectly legal in HTML!):
<TR><TD><TD><TD><TD>
defines a 4 column table
<TR><TD><TD colspan="2"><TD> specifies
that the second and third cells are merged
<TR><TD rowspan="3"><TD><TD><TD> specifies
that first cell for 3 rows are merged
<TR><TD><TD><TD> only
3 Table Data cells defined (first one "reserved" above)
<TR><TD><TD><TD> only
3 Table Data cells defined (first one "reserved" above)
<TR><TD><TD><TD><TD>
returns to 4 column table
This site supplies information on the following topics, with extensive online information on each: CBT, computer based training, Computer-Based Training, WBT, Web-Based Training, web based training, E-Learning, e-learning, e learning, Coursebuilder Training, build online training, building online training, building on-line training, build on-line training, programming online training, programming on-line training, create internet training, create online course, create on-line course, creating online courses, creating on-line courses, create web course, build web training program, online course development, develop online training, develop on-line training, developing online courses, developing on-line courses, online training development, on-line training development, on-line course development, developer online courses, developer on-line courses, developer e-learning, developer CBT, developer Computer based Training, developer computer-based training, developer WBT, developer web based training, developer web-based training, developer coursebuilder, developer online training, developer on-line training, developer web course, designer online courses, designer on-line courses, designer e-learning, designer CBT, designer Computer based Training, designer computer-based training, designer WBT, designer web based training, designer web-based training, designer coursebuilder, designer online training, designer on-line training, designer web course.
CBT, computer based training, Computer-Based Training, WBT, Web-Based Training, web based training, E-Learning, e-learning, e learning, Coursebuilder Training, build online training, building online training, building on-line training, build on-line training, programming online training, programming on-line training, create internet training, create online course, create on-line course, creating online courses, creating on-line courses, create web course, build web training program, online course development, develop online training, develop on-line training, developing online courses, developing on-line courses, online training development, on-line training development, on-line course development, developer online courses, developer on-line courses, developer e-learning, developer CBT, developer Computer based Training, developer computer-based training, developer WBT, developer web based training, developer web-based training, developer coursebuilder, developer online training, developer on-line training, developer web course, designer online courses, designer on-line courses, designer e-learning, designer CBT, designer Computer based Training, designer computer-based training, designer WBT, designer web based training, designer web-based training, designer coursebuilder, designer online training, designer on-line training, designer web course
designer web course designer on line training designer online training designer coursebuilder designer web based training designer web based training designer WBT designer computer based training designer Computer based Training designer CBT designer e learning designer on line courses designer online courses developer web course developer on line training developer online training developer coursebuilder developer web based training developer web based training developer WBT developer computer based training developer Computer based Training developer CBT developer e learning developer on line courses developer online courses WBT Web Based Training web based training e learning e learning e learn programming online training programming on line training online course development online training development on line training development on line course development CBT computer based training Computer Based Train coursebuilder training building online training create internet training create online course create on line course creating online courses creating on line courses create web course develop online training develop on line training developing online courses developing on line courses build online training building on line training build on line training build web training program secondary navigation: index crawler General Education cbt computer-based training computer based training e-learning e learning wbt web-based training web based training index index WBT Web-Based Training web-based training Web Based Training web based training e Learning e learning e-Learning e-learning CBT Computer-Based Training computer-based training Computer Based Training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training computer based training e learning e learning e learning e learning e learning e learning e learning e learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning e-learning WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT WBT