Forms & Tables | Working with tables Flashcards
What are HTML tables primarily used for?
Displaying tabular data
HTML tables were one of the earliest methods for displaying data in a browser.
What should HTML tables not be used for?
Positioning non-data elements on a webpage
Using tables for layout purposes is not considered a best practice.
What is the structure of an HTML table?
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.
What element contains the title of the table?
table head (thead)
The title is usually placed within a th element inside the thead.
What does the th element represent in an HTML table?
Table header
The th element is used to label the data in a row.
What does the td element represent in an HTML table?
Table data
The td element contains individual data cells in a table row.
What is an example of a median pay for software developers as per the provided table?
$130,160 per year
This information was extracted from the U.S. Bureau of Labor Statistics.
What is the typical entry-level education for software developers according to the table?
Bachelor’s degree
What is the job outlook for software developers from 2022 to 2032?
25% (Much faster than average)
This indicates a strong demand for software developers in the coming years.
Fill in the blank: Many websites choose to use _______ instead of the appropriate table element.
divs
True or False: Developers should still use tables for layout purposes.
False
Modern best practices recommend using CSS flexbox and grid for layout.
What element would contain metadata such as date of publication in a table?
table foot (tfoot)
The tfoot can include additional information related to the table.
What is the purpose of the tr element in an HTML table?
Defines a table row