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:
- Write any two advantages of using Cascading Style Sheets (CSS) in a web page.…
- Riya is writing CSS to set the text colour of all <p elements to green. Choose the correct code…
- A) An incomplete CSS code within <head ... </head is given below. Fill in the blanks (line 1 to…
- The following HTML statements are not written properly. Re-write the correct statements with un…
- Riya is writing CSS to make all <h1 text centre-aligned . Choose the correct code:…
- Riya wants to set the font family of the whole page to Arial using CSS. Correct code:…
CSS practice questions
Show answer & solution
<p> elements to green. Choose the correct code:- A
p{text-color:green} - B
p{color:green} - C
<p style="text-color:green"> - D
p{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
p{color:green}<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
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.*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
I. <BODY bgcolor="yellow">
II. <FONT face="arial">
III. <img src="pic.jpg" width="300"><h1> text centre-aligned. Choose the correct code:- A
h1{align:center} - B
h1{text-align:center} - C
<h1 align="center-text"> - D
h1{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
h1{text-align:center}- A
body{font:Arial} - B
body{font-family:Arial} - C
body{font-style:Arial} - D
body{text-font:Arial}
Show answer & solution
body{font-family:Arial}<h1> properties: text colour red and centre-aligned.Show answer & solution
body{background-color:lightblue;} and h1{color:red; text-align:center;}<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
<BODY text="blue"> II) <FONT size="20"> III) <img src="pic.jpg"><span> elements bold. Correct code:- A
span{text-size:bold} - B
span{font-weight:bold} - C
<span style="font-size:bold"> - D
<span style="text-size:bold">
Show answer & solution
span{font-weight:bold}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
background-color (or bgcolor); color; 18px; center, *½ each.* OR B) start="3"; </li>; <ul>; ul, *½ each.*- A
h1{align:center} - B
h1{text-align:center} - C
h1{position:center} - D
h1{text:center}
Show answer & solution
h1{text-align:center}<h2> properties: text colour green and right-aligned.Show answer & solution
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.
Related CBSE Class 10 subjects
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.