Tables Flashcards
1
Q
What are the six primary HTML elements for creating tables?
A
<table>
<thead>
<tbody>
<tr>. table row
<th> // table head
<td> // table data
</td></th></tr></tbody></thead></table>
2
Q
What purpose do the thead and tbody elements serve?
A
As tables get a bit more complex in structure, it is useful to give them more structural definition. One clear way to do this is by using <thead>, <tfoot>, and <tbody>, which allow you to mark up a header, footer, and body section for the table.
3
Q
Give two examples of data that would lend itself well to being displayed in a table.
A
a table with students and their GPA.
a time schedule for events/ activities for the local YMCA.