Free · no sign-up
PracticeArea Practice →
🎓 Free CBSE Class 10 practice, questions, mock tests & solutions. No sign-up.

CBSE Class 10 Computer Applications: HTML Tables, practice questions & solutions

Free CBSE Class 10 Computer Applications practice questions on HTML Tables, with step-by-step solutions. This set has 31 questions (1-mark, 2-mark, 3-mark, 4-mark) modelled on the board blueprint, MCQs, assertion-reason and subjective. Practise them untimed or add them to a full mock test.

Practise this topic free Add to a mock test

What you'll practise

This set has 31 HTML Tables questions for CBSE Class 10 Computer Applications, appearing as 1-mark, 2-mark, 3-mark, 4-mark questions across Section A, Section B, Section C, Section E. Examples include:

HTML Tables practice questions

Section B (2 marks) · HTML Tables
(a) Match each HTML tag with its correct attribute:

TagAttribute
<a>border
<img>bgcolor
<table>href
<body>src


OR
(b) Differentiate between the cellpadding and cellspacing attributes of the <table> tag. Write one HTML statement showing the use of each.
Show answer & solution
(a) Correct matches: <a> → href; <img> → src; <table> → border; <body> → bgcolor. *(½ each)*
OR (b) cellpadding = space between cell content and cell border (inside the cell); cellspacing = space between adjacent cells.
<table cellpadding="10"> and <table cellspacing="10">. *(1 + 1)*
Section B (2 marks) · HTML Tables
State whether the following statements are True or False:
I) <br> is a container tag.
II) The colspan attribute makes a cell span multiple columns.
III) HTTP is more secure than HTTPS.
IV) <h1> produces the largest heading.
Show answer & solution
I) False II) True III) False IV) True, *½ mark each.*
Section C (3 marks) · HTML Tables
Write suitable HTML statements to display the following text on a webpage:
I) H₂SO₄ II) 10³ III) (x+y)²
Show answer & solution
*(1 mark each)* I) H<sub>2</sub>SO<sub>4</sub> II) 10<sup>3</sup> III) (x+y)<sup>2</sup>
Section A (1 mark) · HTML Tables
Which of the following is a valid attribute of the <table> tag?
  1. Acolor
  2. Bborder
  3. Csize
  4. Dface
Show answer & solution
Answer: border. B. border
Section C (3 marks) · HTML Tables
A) A travel website homepage shows two images saved as FLIGHTS.JPG and HOTELS.JPG. On clicking FLIGHTS.JPG, a page FLIGHTS.HTML should open; on clicking HOTELS.JPG, a page HOTELS.HTML should open. Both images should be displayed with width 200 and height 150. Write the HTML code. *(Assume all files are in the same folder.)*
OR
B) Write the HTML code to create the following nested list:

> 1. Fruits
> - Apple
> - Mango
> 2. Vegetables
> - Potato
> - Onion
Show answer & solution
A) *(3 marks)*
html
<a href="FLIGHTS.HTML"><img src="FLIGHTS.JPG" width="200" height="150"></a>
<a href="HOTELS.HTML"><img src="HOTELS.JPG" width="200" height="150"></a>

OR B)
html
<ol>
<li>Fruits
<ul><li>Apple</li><li>Mango</li></ul>
</li>
<li>Vegetables
<ul><li>Potato</li><li>Onion</li></ul>
</li>
</ol>
Section E (4 marks) · HTML Tables
A) Write the HTML code to design the web page shown below. You may write the code for any four of the given six specifications.

> Science Club
> *(image: club.png)*
> We welcome all curious minds to join us!
> Our activities:
> - Robotics Workshop
> - Astronomy Night
> - Science Quiz
> Queries: help@scienceclub.com

Specifications:
1. The background colour of the page should be yellow and the text should be blue.
2. The heading Science Club should be a first-level heading.
3. The image named club.png should be placed on the page.
4. The activities should be written using an unordered list.
5. The font size for the paragraph should be 4 and the font face Arial.
6. The bottom line help@scienceclub.com should be a link that opens the user's default mail client.

OR

B) Write the HTML code to design the table shown below *(table border = 1)*:

GAMEPLAYERS
SPORTSCricket11
 Hockey11
 Chess1


*(The cell "SPORTS" spans all three rows.)*
Show answer & solution
A) *(4 marks, 1 mark for any four correctly-coded specifications)*
html
<html><head><title>Science Club</title></head>
<body bgcolor="yellow" text="blue">
<h1>Science Club</h1>
<img src="club.png">
<p><font size="4" face="Arial">We welcome all curious minds to join us!</font></p>
Our activities:
<ul>
<li>Robotics Workshop</li>
<li>Astronomy Night</li>
<li>Science Quiz</li>
</ul>
<a href="mailto:help@scienceclub.com">help@scienceclub.com</a>
</body></html>

*(Award 1 mark for each of any four specs coded correctly: bgcolor/text; <h1>; <img src>; <ul>; font size/face; mailto link.)*
OR B) *(4 marks, structure; <table border>; rowspan; rows)*
html
<table border="1">
<tr><td rowspan="3"><b>SPORTS</b></td><td>Cricket</td><td>11</td></tr>
<tr><td>Hockey</td><td>11</td></tr>
<tr><td>Chess</td><td>1</td></tr>
</table>

*(Header row <th>GAME</th><th>PLAYERS</th> may also be added above the first data row.)*
Section A (1 mark) · HTML Tables
Which attribute merges a table cell across multiple columns?
  1. Arowspan
  2. Bcolspan
  3. Cmerge
  4. Dspan
Show answer & solution
Answer: colspan. B. colspan
Section A (1 mark) · HTML Tables
A: The <th> tag defines a table data cell. R: <th> text appears bold and centred by default.
Show answer & solution
Correct option: (A). D (A false: <th> is a *header* cell not data; R true, <th> is bold & centred by default)
Section B (2 marks) · HTML Tables
State True/False: I) <td> defines a table row. II) SMTP is used to send email. III) <b> is an empty tag. IV) alt is an attribute of the <img> tag.
Show answer & solution
I) False (defines a cell, not a row) II) True III) False (<b> is a container tag) IV) True, *½ each.*
Section B (2 marks) · HTML Tables
What is the purpose of the <table> tag? Write HTML code to create one row with two data cells.
Show answer & solution
<table> arranges data in rows and columns. *(1)* <tr><td>A</td><td>B</td></tr> *(1).*
Section B (2 marks) · HTML Tables
A) Match each tag with its attribute: <a>→color, <font>→href, <table>→src, <img>→border. OR B) Write any two differences between a static and a dynamic web page.
Show answer & solution
A) <a>→href; <font>→color; <table>→border; <img>→src. *(½ each)* OR B) Any two: static = same fixed content for all users / written in plain HTML; dynamic = content changes per user/input / uses server-side scripting/database. *(1 each)*
Section C (3 marks) · HTML Tables
Write suitable HTML statements to display: I) CO₂ II) 5² III) (a−b)²
Show answer & solution
*(1 each)* I) CO<sub>2</sub> II) 5<sup>2</sup> III) (a-b)<sup>2</sup>

Get more HTML Tables questions in the app →

How to revise HTML Tables

Attempt each question before opening the solution, note the marking-scheme keywords for written answers, and re-attempt anything you got wrong a day later. Then add HTML Tables to a full timed mock to practise it under exam conditions.

More CBSE Class 10 Computer Applications

Keep going: sit the Computer Applications mock test, skim the Computer Applications revision sheet, or browse all Computer Applications topics.

Networking ProtocolsHTML FormsHTML TagsSoftware & SocietyMedia & TextCSSWeb ServicesWeb BasicsCyber EthicsGeneral

Related CBSE Class 10 subjects

CBSE Class 10 Artificial IntelligenceCBSE Class 10 Data Science
Original questions written for this site, modelled on the CBSE blueprint.

Frequently asked questions

How many marks is HTML Tables in CBSE Class 10 Computer Applications?

In the practice set, HTML Tables appears as 1-mark, 2-mark, 3-mark, 4-mark questions across Sections Section A, Section B, Section C, Section E.

Where can I get free HTML Tables questions with answers?

PracticeArea offers 31 free HTML Tables questions for CBSE Class 10 Computer Applications, each with the answer and a worked solution, on this page and in the practice app.

Are these HTML Tables questions the real board questions?

No, they are original questions modelled on the CBSE blueprint and marking scheme, so you can practise the format repeatedly.