Forms & Tables | Working with tables Flashcards

1
Q

What are HTML tables primarily used for?

A

Displaying tabular data

HTML tables were one of the earliest methods for displaying data in a browser.

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

What should HTML tables not be used for?

A

Positioning non-data elements on a webpage

Using tables for layout purposes is not considered a best practice.

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

What is the structure of an HTML table?

A

The structure includes:
* table element
* table head (thead)
* table body (tbody)
* table foot (tfoot)
* table rows (tr)
* table headers (th)
* table data (td)

Each part plays a specific role in organizing tabular data.

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

What element contains the title of the table?

A

table head (thead)

The title is usually placed within a th element inside the thead.

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

What does the th element represent in an HTML table?

A

Table header

The th element is used to label the data in a row.

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

What does the td element represent in an HTML table?

A

Table data

The td element contains individual data cells in a table row.

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

What is an example of a median pay for software developers as per the provided table?

A

$130,160 per year

This information was extracted from the U.S. Bureau of Labor Statistics.

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

What is the typical entry-level education for software developers according to the table?

A

Bachelor’s degree

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

What is the job outlook for software developers from 2022 to 2032?

A

25% (Much faster than average)

This indicates a strong demand for software developers in the coming years.

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

Fill in the blank: Many websites choose to use _______ instead of the appropriate table element.

A

divs

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

True or False: Developers should still use tables for layout purposes.

A

False

Modern best practices recommend using CSS flexbox and grid for layout.

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

What element would contain metadata such as date of publication in a table?

A

table foot (tfoot)

The tfoot can include additional information related to the table.

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

What is the purpose of the tr element in an HTML table?

A

Defines a table row

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