Page 193 - CA_165_V2.0_Flipbook
P. 193
8. What comprises of style rules that are interpreted by the web browser and then applied to the
corresponding elements in a document?
9. The height and width of an element can be specified in length whose values can be in different units.
Name any two units.
B. Long answer type questions.
1. Explain about CSS along with its syntax.
2. Explain different properties of CSS Border.
3. How to align text in CSS?
4. Write the Syntax of:
i. CSS Font ii. CSS Outline iii. CSS Height and Width
5. Rectify the error in the following codes and then write the output:
i. <HTML>
<HEAD> <HEAD>
<BODY>
<H1 STYLE="background:Violet;">
Happy New Year</H1>
</BODY> <HTML>
ii. <HTML>
</HEAD>
<BODY>
<P STYLE = "TEXT-ALIGN:RIGHT;">
THIS TEXT IS ALIGNED RIGHT.
<STYLE = "ALIGN:CENTER;"> THIS TEXT IS ALIGNED IN CENTER.</P>
</BODY> </HTML>
C. Application Based Questions.
1. Niransh wants to define a background image which would be displayed filling only the top of the screen.
How can he do so?
2. Ashmit is writing an HTML code to display a web page using CSS concept. He now wants to set width of
the border. How can he do so?
Previous Years’s Questions
1. Assertion and reasoning question. [CBSE 2024]
i. Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
ii. Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A).
iii. Assertion (A) is true, but Reason (R) is false.
iv. Assertion (A) is false, but Reason (R) is true.
Assertion (A): It becomes difficult to update and maintain a website’s design using CSS.
Reason (R): CSS allows web developers to separate the presentation layer (styles and layout) from the content
layer (HTML).
Cascading Style Sheets 191

