HTML Tables Flashcards

1
Q

Table Element

<table></table>

A

Used to create the table before displaying the data

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

Table Rows Element

<tr></tr>

A

Creates the rows in a table

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

Table Data Element

<td></td>

A

Used to add data in a table

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

Table Headings Element

<th></th>

A

Like the table Data element but for showing the reader what data the column or row the corresponding cells will contain.

A blank heading is needed to correctly align the heading and the rows and columns.

To assign a heading as either a row or column you need to use the scope attribute which will look like the following:

<th>Data</th>

<th>Data</th>

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

Colspan Attribute

<td>Data</td>

A

Data can span columns using the colspan attribute.

<td>Data</td>

The number in the quotes is to denote the number of columns the data spans across.

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

Rowspan Attribute

<td>Data</td>

A

Data can span rows using the rowspan attribute.

<td>Data</td>

The number in the quotes is to denote the number of rows the data spans across.

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

Table Head Element

<thead></thead>

A

When a table’s body is sectioned off it also makes sense to section off the table’s column headings using the table head element

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

Table Body Element

<tbody></tbody>

A

The table body element should contain all of the table’s data, excluding the table headings

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

Table Footer Element

<tfoot></tfoot>

A

Footers are often used to contain sums, differences, and other data results.

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