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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly