HTML Tables Flashcards

1
Q

How do you create a table

A

With the < table > element

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

How do you add rows to a table

A

Using the table row element < tr >, just add the opening and closing tag and it will create rows

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

How do you create cells of data in tables?

A

By adding table data in the table rows with the < td > sign

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

How to add a heading to a table

A

Put the table heading, < th >, tab in the table row element

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

What does scope do?

A

Specifies if the table heading is for the row or column (write col for column)

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

What does deprecated mean?

A

The code was used in the past but is not used now

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

How to add a border to a table

A

A border is added with CSS, using the code:
table, td {
border; 1px solid black
}

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

How do you span columns?

A

In table data, use the colspan attribute and set it to the amount of columns it spans

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

How to span a row

A

Same as spanning a column but use rowspan instead

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

What is table body used for?

A

To section off the code of the table when it gets really long

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

How do you section off the head of a table

A

with the < thead > element

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

What does CSS stand for?

A

Cascading Style Sheets

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

What is CSS used for?

A

Styling HTML content

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