0
0
HTMLmarkup~5 mins

Table structure in HTML - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What HTML tag is used to create a table?
The <table> tag is used to create a table in HTML.
Click to reveal answer
beginner
What tags define rows and cells inside a table?
Rows are defined with <tr> tags. Inside rows, header cells use <th> and regular cells use <td>.
Click to reveal answer
intermediate
What is the purpose of the <thead>, <tbody>, and <tfoot> tags?
They group parts of a table: <thead> for header rows, <tbody> for body rows, and <tfoot> for footer rows. This helps organize and style tables.
Click to reveal answer
beginner
How do you make a table header cell different from a regular cell?
Use <th> for header cells. They are bold and centered by default, helping users understand the table's columns or rows.
Click to reveal answer
intermediate
Why should tables use semantic tags like <th> and <caption>?
Semantic tags improve accessibility. Screen readers can better describe the table, and browsers can style it properly. <caption> gives a title to the table.
Click to reveal answer
Which tag starts a new row in an HTML table?
A&lt;tr&gt;
B&lt;td&gt;
C&lt;th&gt;
D&lt;table&gt;
Which tag is used for a header cell in a table?
A&lt;td&gt;
B&lt;th&gt;
C&lt;tr&gt;
D&lt;thead&gt;
What tag groups the main content rows of a table?
A&lt;caption&gt;
B&lt;tfoot&gt;
C&lt;thead&gt;
D&lt;tbody&gt;
Which tag provides a title or description for a table?
A&lt;caption&gt;
B&lt;title&gt;
C&lt;header&gt;
D&lt;summary&gt;
Why is it important to use semantic tags in tables?
ATo make tables load faster
BTo reduce file size
CTo improve accessibility and styling
DTo hide table borders
Explain the basic structure of an HTML table and the purpose of its main tags.
Think about how rows and cells are organized inside a table.
You got /5 concepts.
    Describe why using semantic tags like and is important for tables.
    Consider how people with disabilities or browsers benefit.
    You got /4 concepts.