Tables Flashcards

1
Q

HTML Tables

html element that initializes a table on a page

A

[table]

ex

[table]

[/table]

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

HTML Tables

once a table has been defined, table rows can be added with this element

A

[tr]

ex

[table]

[tr]

[/tr]

[/table]

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

HTML Tables

once table rows have been defined, cells can be added with this element

A

[td]

ex

[table]

[tr]

[td]…[/td]

[td]…[/td]

[/tr]

[/table]

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

HTML Tables

to designate a heading for a column or row of cells, use this element

A

[th]

works just like [td] but provides semantic value

ex

[table]

[tr]

[th scope=”col”]…[/th]

[th scope=”col”]…[/th]

[/tr]

[tr]

[td]…[/td]

[td]…[/td]

[/tr]

[/table]

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

HTML Tables

element that provides a caption or title for a table

A

[caption]

ex

[table]

[caption]Some title here[/caption]

[/table]

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

HTML Tables

element that wraps the heading row or rows of a table to denote the head

A

[thead]

should be placed after the caption and before the body and foot elements

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

HTML Tables

element that should contain the primary data within a table

A

[tbody]

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

HTML Tables

element that contains data that outlines the contents of a table

A

[tfoot]

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

HTML Tables

attributes that can be added to [td] or [th] elements to specify the height or width in rows and columns

A

rowspan, colspan

ex

[td rowspan=”2”]…[/td]

[td colspan=”2”]…[/td]

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

HTML Tables

property that determines a table’s border model

A

border-collapse

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

HTML Tables

the three possible values for the border-collapse property

A

collapse, separate, and inherit

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

HTML Tables

default value for border-collapse property

A

separate

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

HTML Tables

meaning of table { border-collapse: separate; }

A

all of the table’s elements’ borders will stack up next to one another

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

HTML Tables

meaning of table { border-collapse: collapse; }

A

condenses the borders into one, choosing the table cell as the primary border

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

HTML Tables

property that determines how much space, if any, appears between the borders of a table

A

border-spacing

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

HTML Tables

border-spacing property only works when border-collapse is set to this

A

separate (default)

17
Q

HTML Tables

how to set separate horizontal and vertical values with border-spacing

A

table { border-spacing: 2px 4px }