Chapter 8: Tables in HTML

Chapter 8: Tables in HTML

Chapter 8: Tables in HTML

Fill in the Blanks

  1. The <table> tag is used to create _______.
  2. Answer: tables

  3. The <tr> tag defines a _______ in a table.
  4. Answer: row

  5. Table data is represented using the _______ tag.
  6. Answer: <td>

  7. Table headers are created using the _______ tag.
  8. Answer: <th>

  9. The colspan attribute merges _______ horizontally.
  10. Answer: cells

True or False

  1. The <th> tag is used to define table data.
  2. Answer: False

  3. Rows in a table are defined by the <tr> tag.
  4. Answer: True

  5. The rowspan attribute merges cells vertically.
  6. Answer: True

  7. The <td> tag is used for table headers.
  8. Answer: False

  9. The <table> tag cannot have attributes like border.
  10. Answer: False

Answer in One Sentence

  1. What is the purpose of the <table> tag?
  2. Answer: The <table> tag is used to create tables in HTML.

  3. Which tag is used to define a row in a table?
  4. Answer: The <tr> tag defines a row in a table.

  5. How do you merge table cells horizontally?
  6. Answer: You merge table cells horizontally using the colspan attribute.

  7. What does the <th> tag represent?
  8. Answer: The <th> tag represents a table header.

  9. Which attribute is used to merge cells vertically?
  10. 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

Popular posts from this blog

Index Class V - Excel - ICT

Interactive Worksheet - Excel-V True or False- Quiz

Interactive Worksheet - Excel-V Fill-in-the-Blanks Quiz