CBSE Class 10 Foundation of Information Technology: Working with Tables in HTML NCERT Solutions

NCERT Solutions PDF Class 10 PDF

This chapter provides essential NCERT Solutions for Class 10 Foundation of Information Technology, focusing on 'Working with Tables in HTML'. Students will learn the fundamental HTML tags and attributes used to structure and present data in tabular format. The solutions cover creating tables, defining rows and cells, adding captions, and applying borders and colors. Understanding these concepts is crucial for organizing information effectively on web pages. These solutions offer clear explanations and step-by-step guidance, making them an invaluable resource for exam preparation and reinforcing practical web development skills.

Quick info

BoardCBSE
ClassClass 10
SubjectFoundation of Information Technology
Session2026
LanguageEnglish
TypeNCERT Solutions
Chapter7. Working with Tables in HTML

Chapter summary

Chapter 7, 'Working with Tables in HTML,' covers the essential elements for creating tables in web development. The NCERT Solutions explain the purpose and usage of tags like <table>, <tr>, <th>, <td>, <caption>, <thead>, <tbody>, and <tfoot>. It also details attributes for table structure and appearance, such as colspan, rowspan, border, and frame. This chapter is key for students learning to organize data visually on web pages.

Learning outcomes

  • Understand the purpose of HTML tables for data organization.
  • Identify and use core HTML tags for table creation (<table>, <tr>, <td>, <th>).
  • Apply attributes like colspan and rowspan to merge cells.
  • Implement table captions and structure using <caption>, <thead>, <tbody>, <tfoot>.
  • Control table appearance with border and frame attributes.

Topics covered

Paper topics

  • Introduction to HTML Tables
  • <table> Tag
  • <tr> Tag (Table Row)
  • <td> Tag (Table Data Cell)
  • <th> Tag (Table Header Cell)
  • <caption> Tag
  • <thead>, <tbody>, <tfoot> Tags
  • Colspan Attribute
  • Rowspan Attribute
  • Border Attribute
  • Bordercolor Attribute
  • Frame Attribute

Important topics

  • Core Table Structure Tags (<table>, <tr>, <td>, <th>)
  • Cell Spanning (colspan, rowspan)
  • Table Borders and Styling (border, bordercolor, frame)
  • Table Caption and Structure (<caption>, <thead>, <tbody>, <tfoot>)

PDF preview

Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.

Loading document …
Page of
Loading page …

Questions and Solutions

Question 1

Which of these tags belong to table?

Options:

  1. <thead>,<tbody>,<tfoot>
  2. <head>,<body>,<title>
  3. <header>,<section>,<article>
  4. <p>,<br>,<hr>
Solution: The correct option is (a). The tags <thead>, <tbody>, and <tfoot> are specifically used for structuring the header, body, and footer sections of an HTML table, respectively. The other options contain tags used for general document structure or content, not specifically for tables.

Question 2

Which of the following tags gives a caption to the table?
  1. <caption>
  2. <summary>
  3. <frame>
  4. None of these
Solution: The correct option is (a). The <caption> tag is used to provide a title or caption for an HTML table. It should be placed immediately after the opening <table> tag.

Question 3

Which of the following is used to specify the beginning of a table's row?
  1. <tr>
  2. <row>
  3. <begin>
  4. <table-row>
Solution: The correct option is (a). The <tr> tag, which stands for table row, is used to define a row within an HTML table. All cells ( or ) within a table row are enclosed by the <tr> tags.

Question 4

HTML tag for row is
  1. <colspan>
  2. <tr>
  3. <rowspan>
  4. <td>
Solution: The correct option is (b). The <tr> tag is the standard HTML tag used to define a row in a table. <colspan> and <rowspan> are attributes, and <td> is for a data cell.

Question 5

Which tag is used to add columns in the tables?
  1. <colspan>
  2. <td>
  3. <tr>
  4. None of these
Solution: The correct option is (b). While <td> defines a single data cell (which represents a column entry within a row), the concept of 'adding columns' is achieved by placing multiple <td> or <th> tags within a <tr> tag. The <colspan> attribute is used to make a cell span multiple columns, not to add new ones directly.

Question 6

The tag is used to specify the individual table data in a table.
  1. <th>
  2. <td>
  3. <tr>
  4. <tdata>
Solution: The correct option is (b). The <td> tag is used to define standard data cells within an HTML table row. The <th> tag is used for header cells, and <tr> defines a row.

Question 7

In order to add border to a table, border attribute is specified in which tag?
  1. <tr>
  2. <table>
  3. <td>
  4. <th>
Solution: The correct option is (b). The 'border' attribute is specified within the <table> tag to define the width of the border around the table and its cells. For example, <table border="1">.

Question 8

The attribute used to set the border color of a table is
  1. border
  2. bordercolor
  3. color
  4. style
Solution: The correct option is (b). The 'bordercolor' attribute is used within the <table> tag to specify the color of the table's border.

Question 9

The frame attribute contains types of values.
  1. 9
  2. 3
  3. 6
  4. 4
Solution: The correct option is (a). The 'frame' attribute in HTML tables can take 9 different values ('void', 'above', 'below', 'hsides', 'vsides', 'lhs', 'rhs', 'rframe', 'box') to control which parts of the table border are displayed.

Common mistakes

  • Confusing table data (<td>) and table header (<th>) tags.
  • Incorrectly applying colspan and rowspan attributes.
  • Forgetting to close table-related tags properly.
  • Misunderstanding the scope of the 'frame' attribute values.

Revision tips

  • Practice creating simple tables first, then add complexity with colspan/rowspan.
  • Memorize the primary table tags and their functions.
  • Experiment with different 'frame' attribute values to see their effect.
  • Review the purpose of header cells (<th>) versus data cells (<td>).

Practice MCQs

Q1. Which set of tags are primarily used for structuring HTML tables?

Q2. What is the correct HTML tag for providing a title or caption to a table?

Q3. Which HTML tag is used to define the beginning and end of a table row?

Q4. What is the purpose of the <td > tag in HTML tables?

Q5. Which attribute allows a cell to span across multiple columns in an HTML table?

Q6. To add a border to an HTML table, which tag should have the 'border' attribute specified?

Q7. Which attribute is used to control the color of the table's border?

Q8. The 'frame' attribute in an HTML table determines:

Frequently asked questions

What are the basic tags needed to create an HTML table?

You need the <table> tag to start and end the table, the <tr> tag for each row, and either <td> for data cells or <th> for header cells within each row.

How do I add a title to my HTML table?

You use the <caption> tag immediately after the opening <table> tag. For example: <table><caption>My Table Title</caption>...

What is the difference between colspan and rowspan?

colspan allows a table cell to span across multiple columns horizontally, while rowspan allows a cell to span across multiple rows vertically.

How can I make my HTML table have visible borders?

You can add the 'border' attribute to the <table> tag, like <table border="1">. For more advanced styling, CSS is recommended.

Which tags are used to divide a table into header, body, and footer sections?

The <thead> tag is used for the table header, the <tbody> tag for the main table content, and the <tfoot> tag for the table footer.

What does the 'frame' attribute control in an HTML table?

The 'frame' attribute controls which sides of the table's border are displayed. It has values like 'void', 'box', 'hsides', 'vsides', etc.

Content reviewed by the NCERT Help team. Editorial Team and update policy

NCERT Solutions PDF PDF on NCERT Help. URL unchanged for search indexing.