Chapter 8: Tables in HTML
Chapter 8: Tables in HTML
Fill in the Blanks
- The <table> tag is used to create _______.
- The <tr> tag defines a _______ in a table.
- Table data is represented using the _______ tag.
- Table headers are created using the _______ tag.
- The colspan attribute merges _______ horizontally.
Answer: tables
Answer: row
Answer: <td>
Answer: <th>
Answer: cells
True or False
- The <th> tag is used to define table data.
- Rows in a table are defined by the <tr> tag.
- The rowspan attribute merges cells vertically.
- The <td> tag is used for table headers.
- The <table> tag cannot have attributes like border.
Answer: False
Answer: True
Answer: True
Answer: False
Answer: False
Answer in One Sentence
- What is the purpose of the <table> tag?
- Which tag is used to define a row in a table?
- How do you merge table cells horizontally?
- What does the <th> tag represent?
- Which attribute is used to merge cells vertically?
Answer: The <table> tag is used to create tables in HTML.
Answer: The <tr> tag defines a row in a table.
Answer: You merge table cells horizontally using the colspan attribute.
Answer: The <th> tag represents a table header.
Answer: The rowspan attribute is used to merge cells vertically.
Match the Following
Element | Function |
---|---|
<table> | Creates a table |
<tr> | Defines rows in a table |
<td> | Represents table data |
<th> | Represents table headers |
colspan | Merges cells horizontally |
Comments
Post a Comment