0% found this document useful (0 votes)
16 views

CSS Revision Questions

Uploaded by

king97878911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

CSS Revision Questions

Uploaded by

king97878911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

VAASAVI INTERNATIONAL SCHOOL

COMPUTER APPLICATIONS
CLASS 10

Time Allotted: 60 Mins Maximum Marks: 30


SUBJECTIVE QUESTIONS
I. Short Answers: 4*2=8
1. what is CSS ? What are the type of CSS ?
2. What is meant by Inline style?Explain with example.
3. What are the benefits of CSS?
4. Write an HTML code to embed a video clip using < video >tag.
II. Answer the following Questions: 2*6=12
1. What is the difference between a static and dynamic website?
ANS:A static website is delivered to a user exactly the way it's stored. There are no user
interactions, no comments or any activity. A dynamic website is a website that changes or updates
frequently.
2. Compare HTML and CSS

3. Write the equivalent CSS code to set the following styles for a web page:
i. Entire page background color should be yellow
ii. Second level Heading properties should be as follows: Text color should be Red
Left margin should be 25 px
ANS:1. body { background-color: yellow; } 2. h2 { color: red; /* Text color
should be Red */ margin-left: 25px; /* Left margin should be 25 px */ }
4. Write HTML code to design the content of the web page in the form of lists as shown
below:

III. Read the text carefully and answer the questions: 2x5=10
1. Read the text carefully and answer the questions:
Consider the following code and answer the given questions
<head>
<title>Example CSS</title>
<style type = "text/css">
H1 {
color:red;
font-size:20px;
text-decoration:underline;
}
P{
font-weight:bold;
font-style:italic:
}
</style>
</head>
<body>
<h1>Dynamic Hyper Text Markup Language</h1>
<p>Hyper Text Markup Language</p>
<p>World Wide Web</p>
<p>Cascading Style Sheets</p>
</body>
</html>
1.What type of style sheet is used in this code?
a) Inline b) External c) Internal d) Subline
2. Internal styles are applied on:
a) The heading b) The entire webpage
c) The paragraph d) To all tags of same type in a webpage
3.Which of the following style is used to make the text bold?
a) Font-style b) Font-weight c) Font-variant d) Font-size
4. How will the text appear in given code?
<p>World Wide Web</p>
a) Bold b) Italic and size 20 c) Italic and red colour d) Bold and italic

5. Which of the following attribute is used to underline/overline the text?


a) Font-variant b) Font-style c) Text-decoration d) Text-style
2. Read the text carefully and answer the questions:
Consider the following code and answer the given questions
<html>
<head>
<title>Table with Attribute</title>
</head>
<body>
<table cellspacing="5" cellpadding="15" border="4" bordercolor="blue" align="center"
bgcolor="yellow">
<tr>
<th>Class</th>
<th>Boys</th>
<th>Girls</th>
</tr>
<tr>
<td>VI</td>
<td>150</td>
<td>165</td>
</tr>
<tr>
<td>VII</td>
<td>146</td>
<td>151</td>
</tr>
<tr>
<td>VIII</td>
<td>107</td>
<td>110</td>
</tr>
</table>
</body> </html>

1.This HTML code will display ________ on the webpage.


a) Table b) Paragraph c) Link d) Image
2.What is the background colour of the table?
a) Green b) Yellow c) Blue d) White
3.The space between cells in a table is specified by the following code:
a) cellspacing=5 b) both cellspacing=5andcellpadding=15
c) cellpadding=5 d) cellpadding=15
4.The space between contents of a cell and its border is specified by the following code:
a) cellspacing=5 b) both cellspacing=5andcellpadding=15
c) both cellspacing=5andcellpadding=5 d) cellpadding=15
5. What is Cell Padding and cell Spacing?

You might also like