CBSE Class 10 Computer Science Working with Tables in HTML Worksheet

Chapter-wise Worksheets for Class 10 Computers: Working with Tables in HTML

Review targeted academic worksheets with the CBSE Class 10 Computer Science Working with Tables in HTML Worksheet. Built according to official educational standards for the 2026-27 term, these downloadable Class 10 Computers resources support effective daily practice and detailed self-evaluation for Working with Tables in HTML.

Practice Class 10 Computers Worksheets: Working with Tables in HTML

Navigate directly to the solved Computers worksheets using the digital viewer below. Each practice set includes detailed step-by-step solutions, allowing students to instantly cross-check their work and identify areas requiring further revision.

Worksheets have become an integral part of the education system. Worksheets are very critical for every student to practice his/ her concepts. Students, teachers and parents can download all CBSE educational material and extremely well prepared worksheets from this website. All revision worksheets, Sample papers, Question banks and easy to learn study notes for all classes and subjects have been prepared based on the latest guidelines sent by CBSE. All CBSE educational material is developed by our panel of teachers, have also been submitted by thousands of teachers and students. The study material has been carefully compiled by the best teachers in India. Worksheets have been submitted by teachers of various CBSE schools and also have been carefully developed keeping into consideration the latest CBSE syllabus.

Multiple Choice Questions

Question. Which of these tags belong to table?
(a) <THEAD>,<BODY>,<TR>
(b) <TABLE>,<HEAD>,<TFOOT>
(c) <TABLE>,<TR>,<TD>
(d) <TABLE>,<TR>,<TT>
Answer. C

Question. HTML tag for row is
(a) <COLSPAN>
(b) <TR>
(c) <ROWSPAN>
(d) <TD>
Answer. B

Question. Which tag is used to add columns in the table?
(a) <COLSPAN>
(b) <TD>
(c) <TR>
(d) None of these
Answer. B

Question. Which of the following tag gives a caption to the table?
(a) <CAPTION>
(b) <SUMMARY>
(c) <FRAME>
(d) None of these
Answer. A

(a) <TABLE>
(b) <TR>
(c) <ROW>
(d) <BEGIN>
Answer. B

Question. The ……… tag is used to specify the individual table data in a table.
(a) <TR>
(b) <TD>
(c)<TH>
(d)<TABLE>
Answer. B

Question. What is the correct HTML code to left align the content inside a table cell?
(a) <TD valign = "left">
(b) <TD align = "left">
(c) <TD left align>
(d) <TD left>
Answer. B

Question. Which attribute tells, how many rows a cell should span?
(a) colspan = n
(b) rowspan = n
(c) Both (a) and (b)
(d) None of these
Answer. B

Question. colspan = n can be added to …… tag.
(a) <HR>
(b) <TABLE>
(c) <TD>
(d) <TR>
Answer. C

Question. In order to add border to a table, border attribute is specified in which tag? 
(a) <TH>
(b) <TABLE>
(c) <TD>
(d)<TR>
Answer. B

Question. The attribute used to set the border color of a table is 
(a) border
(b) bordercolor
(c) color
(d) border color
Answer. B

Question. The frame attribute contains ……… types of values.
(a) 9
(b) 3
(c) 6
(d) 4
Answer. A

Question. Which of the following is an attribute of <TABLE> tag? 
(a) src
(b) cellpadding
(c) link
(d) bold
Answer. B 

Question. Which one of the following is not an option for aligning data in a table?
(a) justify
(b) right
(c) left
(d) center
Answer. A

Question. Which attribute of the <TABLE> tag is used to set an image in the background of a table?
(a) bgcolor
(b) background
(c) frame
(d) rules
Answer. B

Case Based MCQs

Direction Read the case and answer the following questions.

Tables can be divided into three portions as a head,a body and a foot. The head and foot are rather similar to headers and footers in a word processor document that remain the same for every page,while the body is the main content holder of the table.

The three elements for separating the head, body and foot of a table are as follows
(i) <THEAD>
(ii) <TBODY>
(iii) <TFOOT>

Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.

Question. Which tag indicates the header rows in a table?
(a) <THEAD>
(b)<TBODY>
(c) <TFOOT>
(d) All of these
Answer. A

Question. Which attribute(s) is/are contained in <TBODY> tag?
(a) align
(b) bgcolor
(c) valign
(d) All of these
Answer. D

Question. Which tag is used to indicate the footer rows?
(a) <THEAD>
(b)<TBODY>
(c) <TFOOT>
(d) None of these
Answer. C

Question. A table may contain several .................... elements to indicate different pages or groups of data.
(a) <THEAD>
(b)<TBODY>
(c) <TFOOT>
(d) All of these
Answer. B

Question. Which tag is used to show the main body of thetable?
(a) <THEAD>
(b)<TBODY>
(c) <TFOOT>
(d) All of these
Answer. D


Short Answer Type Questions

Question. What is table? Name the basic commands for creating a table.
Answer. Tables are made up of rows and columns. In HTML,tables are used to display tabular data in web pages. The basic commands for creating tables are as follows:
Table tag <TABLE> </TABLE>
Row tag <TR> </TR>
Cell tag <TD> </TD>, <TH> </TH>
Caption tag <CAPTION> </CAPTION>

Question. Name the attributes of <TABLE> tag, which are used for specifying its dimensions in a web page.
Answer. width and height attributes of <TABLE> tag, which are used for specifying its dimensions in a web page. width and height are specified in terms of pixel or percentage of the browser window.

Question. Explain the width attribute of <TABLE> tag.
Answer. The width attribute is used to set the absolute width of the table. The values in width attribute can be either in pixel or in percentage of the browser window. e.g.
<TABLE width = "150">
<TR><TD>Cell1</TD><TD>Cell2</TD></TR>
<TR><TD>Cell3</TD><TD>Cell4</TD></TR>
</TABLE>

Question. Name the attributes that are used to do the following in HTML.
(i)Merge two or more rows
(ii) Change the background color of the cells in a table
(iii) Vertically align cell content
(iv)Merge two or more columns
Answer. (i) rowspan (ii) bgcolor
(iii) valign (iv) colspan

Question. Write HTML code to display a table with border of 5px. 
Answer. <HTML><BODY>
<TABLE border = "5">
<TR><TD>1</TD></TR>
<TR><TD>2</TD></TR>
</TABLE>
</BODY></HTML>

Question. Name the attributes used for following.
(i) Setting the cell width
(ii) Setting cell’s background image
(iii) Setting cell’s background color
(iv) Changing the cell span
Answer. (i) width (ii) background
(iii) bgcolor (iv) rowspan and colspan

Question. Which attributes can you use with <TABLE> tag but not with <TR> tag?
Answer. summary, rules, frame, border, cellpadding, cellspacing, height, width and bordercolor are the attributes that you can use with <TABLE> tag but not with <TR> tag.

Question. What are the roles of rowspan and colspan attributes? Explain with suitable HTML example.
Answer. colspan attribute allows the user to stretch a cell to span multiple columns (merge two or more columns). rowspan attribute is used to span multiple rows (merge two or more rows).
e.g. <TABLE border = '1'>
<TR>
<TD> Row-1 Column-1 </TD>
<TD colspan = "2">Row-1 Column-2 and 3
</TD>
<TD rowspan = "2">Row-1 and 2 Column-4
</TD> </TR>
<TR>
<TD> Row-2 Column-1 </TD>
<TD> Row-2 Column-2 </TD>
<TD> Row-2 Column-3 </TD>
</TR>
</TABLE>


Long Answer Type Questions

Question. Write the HTML code to create the exact table which is given below
CBSE Class 10 Computer Science Working with Tables in HTML

Answer. The HTML code is
<HTML>
<BODY>
<TABLE border="3">
<TR align="center" valign="middle">
<TH> ADMNO </TH>
<TH> SNAME </TH>
<TH> NAME </TH>
<TH> DOB </TH>
</TR>
<TR align="left" valign="middle">
<TD> 1110 </TD>
<TD> MANJIT </TD>
<TD> RANJIT </TD>
<TD> 4-MAR-1998 </TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question.Write the HTML code to generate the following web page.
CBSE Class 10 Computer Science Working with Tables in HTML

NoteThe following points while generating the web page:
l Link color is green, active link color is blue and visited link color is red.
l Title of the page is "Eat healthy, live healthy".
l Heading of the page is maroon.
l Image used is "Restaurant.jpg".
l Caption of table is blue.
l Table border is blue and of size 2.
Answer. The HTML code is
<HTML>
<HEAD>
<TITLE>Eat healthy, live healthy</TITLE>
</HEAD>
<BODY link="green" alink="blue" vlink="red">
<CENTER>
<H1>
<FONT color="maroon">KHAO PIYO
RESTAURANT </FONT>
</H1>
</CENTER>
<IMG src="Restaurant.jpg"
align="right"height ="255" width="250">
Collect Information for
<UL>
<LI> Menus </LI>
<LI> Reservation </LI>
<LI> Catering </LI>
<LI></LI>
</UL>
<CENTER>
<TABLE border="2" bordercolor="blue">
<FONT color="blue">
<CAPTION> Menus available are </CAPTION>
</FONT>
<TR>
<TD> 1 </TD> <TD> INDIAN </TD>
</TR>
<TR>
<TD> 2 </TD> <TD> ITALIAN </TD>
</TR>
<TR>
<TD> 3 </TD> <TD> CONTINENTAL </TD>
</TR>
<TR>
<TD> 4 </TD> <TD> THAI </TD>
</TR>
</TABLE>
</CENTER>
<BR>
For further queries and reservation
Contact Us
</BODY></HTML>

Question. Mr. Ayush, Sports Captain of the school, has to display sequence of events of the upcoming Annual Sports Day on the school website. Help him in writing HTML code to create a table in HTML as shown in the given screenshot
 Annual Sports Day-Sequence of Events
8.00 AM-9.00 AM     9.00 AM-1:00 PM    1:00 PM-2:00 PM
Cultural Events        Track Events            Prize Distribution
Answer. <HTML>
<BODY>
<TABLE border = "1">
<TR>
<TH colspan ="3" align ="center"> ANNUAL
SPORTS DAY-SEQUENCE OF EVENTS</TH>
</TR>
<TR align ="center">
<TD>8:00 AM - 9:00 AM</TD>
<TD>9:00 AM-1:00 PM</TD>
<TD>1:00 PM-2:00 PM</TD>
</TR>
<TR align ="center">
<TD>CULTURAL EVENTS</TD>
<TD>TRACK EVENTS</TD>
<TD>PRIZE DISTRIBUTION</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Write the HTML code to generate the following table on a web page with the contents and alignment exactly as shown below. 
CBSE Class 10 Computer Science Working with Tables in HTML
Answer. The HTML code is

<HTML>
<BODY>
<TABLE border="1" width = "400">
<TR align="right">
<TH>MOVID</TH>
<TH>MOVNAME</TH>
<TH>ACTORS</TH>
</TR>
<TR align="left">
<TD>M001</TD>
<TD>HIT FACTORY</TD>
<TD>4</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Observe the following table and write the HTML code to generate it
CBSE Class 10 Computer Science Working with Tables in HTML

Answer. The HTML code is
<HTML>
<BODY>
<TABLE cellpadding = "10" cellspacing="0" border="1">
<TR align = "center">
<TH>Period1</TH>
<TH>Period2</TH>
</TR>
<TR align = "center">
<TD>Math</TD>
<TD>Science</TD>
</TR>
<TR align="center">
<TD>English</TD>
<TD>SST</TD>
</TR>
<TR align="center">
<TD>Science</TD>
<TD>SST</TD>
</TR>
</TABLE>
</BODY>
</HTML>

 

A. MCQ:

1. A domain name ending with .edu belongs to
a) An educational institution
b) An organization
c) A site that is highly oraganised
d) A commercial website

2. Opera is a
a) Web browser
b) News Website
c) Graphics package
d) Word processor

3. Which of these is not part of URL
a) IP address
b) Port number
c) Domain name
d) None of the above

4. What data type should you choose for a zip code field in a table
a) Text
b) Number
c) memo
d) All of the above

5. Which is not true for a database file
a) Each record may contain several fields.
b) Fields are oragnised in columns.
c) Data types have to be declared in advance
d) Each field may contain several records.

B. True or false:

1. Internet is governed by IETF.
2. The first network that planted the seed of Internet was ARPANET.
3. Digital information is converted into analog information by the modem at destination computer.
4. Http protocol is used for WWW.
5. Primary key is a field that uniquely identifies records in the table.

C. Brief Answers:

1. What is wrong with following coding?
2. How do you give a comment in HTML?
3. What is the significance of NULL values?

D. Definition:

1. Tag
2. Attribute

    Download Class 10 Computers Working with Tables in HTML Practice Worksheets

    Practice Exercises for Class 10 Computers Working with Tables in HTML

    Review targeted practice exercises for Class 10 Computers Working with Tables in HTML. Curated to match official CBSE guidelines, these printable problem sets support daily revision and improve overall test readiness.

    Step-by-Step Solutions and Practice Guidelines

    Each worksheet draws directly from authorized standard textbooks to maintain academic accuracy. Evaluating your finished exercises against expert-verified solutions helps master the formal presentation standards expected in school evaluations.

    Enhance Speed with Online Practice

    Follow up your worksheet practice by attempting the interactive online MCQ tests for Working with Tables in HTML to evaluate your execution speed. All printable assignments and revision sheets on our platform are updated for the 2026 session and available free of charge.

    FAQs

    Where can I download the 2026-27 CBSE printable worksheets for Class 10 Computers Working with Tables in HTML?

    You can download the latest chapter-wise printable worksheets for Class 10 Computers Working with Tables in HTML for free from StudiesToday.com. These have been made as per the latest CBSE curriculum for this academic year.

    Are these Working with Tables in HTML Computers worksheets based on the new competency-based education (CBE) model?

    Yes, Class 10 Computers worksheets for Working with Tables in HTML focus on activity-based learning and also competency-style questions. This helps students to apply theoretical knowledge to practical scenarios.

    Do the Class 10 Computers Working with Tables in HTML worksheets have answers?

    Yes, we have provided solved worksheets for Class 10 Computers Working with Tables in HTML to help students verify their answers instantly.

    Can I print these Working with Tables in HTML Computers test sheets?

    Yes, our Class 10 Computers test sheets are mobile-friendly PDFs and can be printed by teachers for classroom.

    What is the benefit of solving chapter-wise worksheets for Computers Class 10 Working with Tables in HTML?

    For Working with Tables in HTML, regular practice with our worksheets will improve question-handling speed and help students understand all technical terms and diagrams.