CBSE Class 10 Foundation of Information Technology: Working with Tables in HTML NCERT Solutions
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
| Board | CBSE |
|---|---|
| Class | Class 10 |
| Subject | Foundation of Information Technology |
| Session | 2026 |
| Language | English |
| Type | NCERT Solutions |
| Chapter | 7. 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.
Questions and Solutions
Question 1
Options:
- <thead>,<tbody>,<tfoot>
- <head>,<body>,<title>
- <header>,<section>,<article>
- <p>,<br>,<hr>
Question 2
- <caption>
- <summary>
- <frame>
- None of these
Question 3
- <tr>
- <row>
- <begin>
- <table-row>
Question 4
- <colspan>
- <tr>
- <rowspan>
- <td>
Question 5
- <colspan>
- <td>
- <tr>
- None of these
Question 6
- <th>
- <td>
- <tr>
- <tdata>
Question 7
- <tr>
- <table>
- <td>
- <th>
Question 8
- border
- bordercolor
- color
- style
Question 9
- 9
- 3
- 6
- 4
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?
Explanation: The tags <thead >, <tbody >, and <tfoot > are specifically designed to define the header, body, and footer sections of an HTML table, respectively.
Q2. What is the correct HTML tag for providing a title or caption to a table?
Explanation: The <caption > tag is used immediately after the opening <table> tag to provide a descriptive caption for the entire table.
Q3. Which HTML tag is used to define the beginning and end of a table row?
Explanation: The <tr > tag, which stands for table row, is used to enclose all the cells within a single row of an HTML table.
Q4. What is the purpose of the <td > tag in HTML tables?
Explanation: The <td > tag is used to define individual data cells within a table row. It holds the actual content of the table.
Q5. Which attribute allows a cell to span across multiple columns in an HTML table?
Explanation: The 'colspan' attribute is used within a <td> or <th> tag to make that cell extend horizontally across a specified number of columns.
Q6. To add a border to an HTML table, which tag should have the 'border' attribute specified?
Explanation: The 'border' attribute is typically applied to the <table > tag itself to define the thickness of the border around the table and its cells.
Q7. Which attribute is used to control the color of the table's border?
Explanation: The 'bordercolor' attribute is used within the <table > tag to set the color of the table's border.
Q8. The 'frame' attribute in an HTML table determines:
Explanation: The 'frame' attribute controls which parts of the table's border are rendered, allowing for different visual styles like 'void', 'above', 'below', 'hsides', 'vsides', 'lhs', 'rhs', 'rframe', and 'box'.
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.