11CA 13 CSS - Cascading Style Sheets
11CA 13 CSS - Cascading Style Sheets
Part – I
Choose the correct answer
1) Expansion of CSS
(A) Cascading Style Schools (B) Cascading Style Scheme
(C) Cascading Style Sheets (D) Cascading Style Shares
2) Which of the following is the page level style?
(A) <Page> (B) <Style> (C) <Link> (D) <H>
3) CSS is also called as:
(A) Sitewide Style Sheets (B) Internal Style Sheets
(C) Inline Style Sheets (D) Internal Inline Sheets
4) The extension of CSS file is
(A) .ssc (B) .css (C) .csc (D) .htm
5) What is selector?
(A) Property (B) Value (C) HTML tag (D) name
6) The Declaration block of CSS is surrounded by
(A) ( ) (B) [ ] (C) { } (D) <>
7) The declaration should be terminated by
(A) : (B) ; (C) . (D) ,
8) What is the property to set text as bold?
(A) Font-Style (B) Font-Weight (C) Font-Property (D) Font-Bold
9) Which of the following indicates that the text included is a comment ?
(A) /* */ (B) !* *! (C) <* *> (D) \* *\
10) Which of the following ways below is correct to write a CSS?
(A) p{color:red; text-align:center}; (B) p {color:red; text-align:center}
(C) p {color:red; text-align:center;} (D) p (color:red;text-align:center;)
Part – II
Very Short Answers
1) What is the use of <style> tag?
A style tag is used to change the default characteristics of a particular tag in the entire web
document wherever that tag is used.
The <style> tag controls the presentation styles of a particular HTML document
2) What is CSS?
Cascading Style Sheets (CSS) are also called as Sitewide Style sheets or external style.
CSS is a style sheet language used for describing the formatting of a document written in
HTML.
11 CA / Chapter 13 / Page 1 of 3
“Inline style” ,which is used to define style for a particular tag anywhere in an HTML
document.
You can define styles for any tag within an HTML document. But it is applicable only on that
line where it is defined .
If you use the same tag, again in the same document, it does not reflect the new style
3) Write a CSS file to define text color and alignment to <p> tag.
P
{
color : yellow ;
Text-align : center;
}
4) Write a CSS file to define font type, style and size to <h1> tag.
P
{
Font-family : “Arial”;
Font-style : Italic;
Font-size : 12px;
}
11 CA / Chapter 13 / Page 2 of 3
Part-IV
Explain in Detail
1) Write an HTML document to display the following paragraph as per the given description
Using CSS:
• Font Name : Cooper Black
• Style : Bold Italics
• Color : Blue
“The State Institute of Education (SIE) was established in 1965 to provide for systematic
study of problems relating to School Education under the administration of Directorate
of School Education.”
Answer :
<HTML>
<HEAD><TITLE>State Institute of Education (SIE) </TITLE>
<STYLE>
P { font-family:"Cooper Black";
font-weight: Bold;
font-style :Italic;
color :blue;
}
</STYLE>
</HEAD>
<BODY>
<P>
The State Institute of Education (SIE) was established in 1965 to provide for systematic
study of problems relating to School Education under the administration of Directorate
of School Education.</P>
</BODY>
</HTML>
2) List and explain the Font and text element properties and values used in CSS.
11 CA / Chapter 13 / Page 3 of 3