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

CBSE Class 10 Computer Applications: CSS, practice questions & solutions

Free CBSE Class 10 Computer Applications practice questions on CSS, with step-by-step solutions. This set has 21 questions (1-mark, 2-mark, 3-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 21 CSS questions for CBSE Class 10 Computer Applications, appearing as 1-mark, 2-mark, 3-mark questions across Section A, Section B, Section C. Examples include:

CSS practice questions

Section B (2 marks) · CSS
Write any two advantages of using Cascading Style Sheets (CSS) in a web page.
Show answer & solution
Any two CSS advantages: separates presentation from content; one stylesheet controls many pages (consistency + easy updates); reduces page size/faster loading; easier maintenance. *(1 each)*
Section A (1 mark) · CSS
Riya is writing CSS to set the text colour of all <p> elements to green. Choose the correct code:
  1. Ap{text-color:green}
  2. Bp{color:green}
  3. C<p style="text-color:green">
  4. Dp{font-color:green}

    A. Both A and R are true and R is the correct explanation of A.
    B. Both A and R are true but R is not the correct explanation of A.
    C. A is true but R is false.
    D. A is false but R is true
Show answer & solution
Answer: p{color:green}. B. p{color:green}
Section B (2 marks) · CSS
A) An incomplete CSS code within <head> ... </head> is given below. Fill in the blanks (line 1 to 4) as per the specifications that follow:
html
<head>
<style>
body { ________ : pink; } <!-- line 1 -->
p {
________ : navy; <!-- line 2 -->
font-size : ______ ; <!-- line 3 -->
}
h2 { text-align : ______ ; } <!-- line 4 -->
</style>
</head>

Line 1: Page background colour should be pink.
Line 2: Colour of the paragraph text should be navy.
Line 3: Font size of the paragraph should be 20px.
Line 4: The second-level heading should be centre-aligned.
OR
B) Hemant is writing HTML to create lists. Fill in the blanks (line 1 to 4) so the output is correct:
html
<ol ______ > <!-- line 1: list should start numbering from 5 -->
<li>Delhi</li>
<li>Mumbai _____ <!-- line 2: close the list item -->
<______> <!-- line 3: start an unordered list -->
<li>Red</li>
</____> <!-- line 4: close the unordered list -->
</ol>
Show answer & solution
A) Line 1: background-color (or bgcolor equivalent) Line 2: color Line 3: 20px Line 4: center, *½ mark each blank.*
OR B) Line 1: start="5" Line 2: </li> Line 3: <ul> Line 4: ul, *½ mark each blank.*
Section C (3 marks) · CSS
The following HTML statements are not written properly. Re-write the correct statements with underlined corrections. The desired purpose of each statement is mentioned under it.
I. <BODY bg="yellow"> <!-- Page background colour should be yellow -->
II. <FONT style="arial"> <!-- Type of font should be arial -->
III. <img link="pic.jpg" width="300"> <!-- Image source should be pic.jpg -->
Show answer & solution
The correct statements are *(1 mark for each correction)*:
I. <BODY bgcolor="yellow">
II. <FONT face="arial">
III. <img src="pic.jpg" width="300">
Section A (1 mark) · CSS
Riya is writing CSS to make all <h1> text centre-aligned. Choose the correct code:
  1. Ah1{align:center}
  2. Bh1{text-align:center}
  3. C<h1 align="center-text">
  4. Dh1{text-position:center}

    A. Both A and R are true and R is the correct explanation of A.
    B. Both A and R are true but R is not the correct explanation of A.
    C. A is true but R is false.
    D. A is false but R is true
Show answer & solution
Answer: h1{text-align:center}. B. h1{text-align:center}
Section A (1 mark) · CSS
Riya wants to set the font family of the whole page to Arial using CSS. Correct code:
  1. Abody{font:Arial}
  2. Bbody{font-family:Arial}
  3. Cbody{font-style:Arial}
  4. Dbody{text-font:Arial}
Show answer & solution
Answer: body{font-family:Arial}. B. body{font-family:Arial}
Section C (3 marks) · CSS
The following CSS is to be written for a web page. Write the equivalent CSS code: I) The entire page background colour should be light blue. II) First-level heading <h1> properties: text colour red and centre-aligned.
Show answer & solution
*(1.5 each line)* body{background-color:lightblue;} and h1{color:red; text-align:center;}
Section C (3 marks) · CSS
The following HTML statements are not written properly. Re-write the correct statements with underlined corrections (purpose under each): I) <BODY textcolor="blue"> *(page text colour should be blue)* II) <FONT style="20"> *(font size should be 20)* III) <img href="pic.jpg"> *(image source should be pic.jpg)*
Show answer & solution
*(1 mark each correction)* I) <BODY text="blue"> II) <FONT size="20"> III) <img src="pic.jpg">
Section A (1 mark) · CSS
Anshu is writing CSS to make all <span> elements bold. Correct code:
  1. Aspan{text-size:bold}
  2. Bspan{font-weight:bold}
  3. C<span style="font-size:bold">
  4. D<span style="text-size:bold">
Show answer & solution
Answer: span{font-weight:bold}. B. span{font-weight:bold}
Section B (2 marks) · CSS
A) Fill the blanks in the CSS code below: body{ ______:lightgreen; } *(bg colour)*, p{ ______:maroon; ______:18px; } *(text colour; font size)*, h3{ text-align:______; } *(centre)*. OR B) Fill the blanks: <ol ______ > *(start from 3)*, <li>Red _____ *(close list item)*, <____> *(open unordered list)*, </____> *(close unordered list)*.
Show answer & solution
A) background-color (or bgcolor); color; 18px; center, *½ each.* OR B) start="3"; </li>; <ul>; ul, *½ each.*
Section A (1 mark) · CSS
CSS code to centre-align a heading:
  1. Ah1{align:center}
  2. Bh1{text-align:center}
  3. Ch1{position:center}
  4. Dh1{text:center}
Show answer & solution
Answer: h1{text-align:center}. B. h1{text-align:center}
Section C (3 marks) · CSS
Write the equivalent CSS code: I) The entire page background colour should be cream. II) Second-level heading <h2> properties: text colour green and right-aligned.
Show answer & solution
*(1.5 each)* body{background-color:cream;} and h2{color:green; text-align:right;}

Get more CSS questions in the app →

How to revise CSS

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 CSS 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 TablesHTML TagsSoftware & SocietyMedia & TextWeb 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 CSS in CBSE Class 10 Computer Applications?

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

Where can I get free CSS questions with answers?

PracticeArea offers 21 free CSS 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 CSS 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.