Chapter 7: Cascading Style Sheets

A.Fill in the blanks.

1. Each property has a name and a value, separated by a  ……………

Answer 1. Semi-colon (;)

2. A…………..is a type of an attribute of HTML tag.
Answer 2. Property

3. Each ……………is separated by a semicolon.
Answer 3. Declaration

4. An ………… is used to change the appearance of the whole website.
Answer 3. External style sheet

5.A…………….tag is used on every webpage to link it with the style sheet.
Answer 3. <link>

6.Using the …………. attribute of the relevant tag, you can apply style sheet rule directly to any HTML element.
Answer 3. Style

B: Answer in one word 

1.It points to the HTML element you want to style.   
Answer: Selector

2.It is given to the attribute or property.     
Answer: Value 

3.It contains one or more declarations.      
Answer: Declaration block

4.It can be saved with a .css extention.      
Answer: External Style Sheet

5.Tag used to apply Style Sheet rules to a single document only.
Answer: <style>

6.It has the properties related to the font using CSS 
Answer: CSS Fonts

C. Write T for True and F for False statements.

1.Using CSS,it is neccessary to write HTML tag attributes every time
Answer: F

2.A CSS rule-set consists of a selector and a declaration.
Answer: T

3.A <link> tag is used on every webpage to link inline style sheet.
Answer: F

4.Using the style attribute of the relevant tag, you can apply style sheet rules directly to any HTML element.
Answer: T

5.The CSS color property defines the font to be used.
Answer: F

6.CSS Background-size properly is used to add the image in the background.
Answer: F

7.Font style properly is mostly used to specify italic text.
Answer: T

8.To center align an element horizontally you can use the align attribute.
Answer: F

D. Answer these Questions.

1.Why is CSS useful?
Ans:CSS is useful because :-
a.Gives better look to HTML page
b.Helps to control the look of multiple documents using single style sheet.
c.it enables webpages to adjust their layout and content based on the screen size and device.
 
2.What is the use of the CSS Background-image property?
Ans: This property is used to add the image in the background of the webpage.
          Syntax: <body style=”background-image:url(imageUrl);”>
 
3.How is the CSS font-family propery useful?
Ans:The font-family property is usedd to define several font names that can be used in the webpage.
    example: p{font-family:Arial,sans-serif;}
 
4.What are the advantages of CSS?
Ans: Advantages of CSS is :-
a.Gives control to design webpage’s every element smartly
b.Helps to control the look of multiple documents using single style sheet.
c.it enables webpages to adjust their layout and content based on the screen size and device.
d.it reduce the line of code that load page faster
 
5.Differentiate between inline,internal and external CSS
Ans:Inline CSS :
a.It set rules directly to any html element
b.Tt override the rules defined in external css file and  rules defined in <style> tag too
Internal CSS :
a.The rules are included in header section of the HTML document.
b.It override the rules defined in external css file only
External CSS :
a.External style sheet change the appearance of the whole website.
b.Whole website design can be controlled by single CSS file saved with extention (.css)
Scroll to Top
सरकारी नौकरी के परीक्षा में इस तरह के प्रश्न पूछे जाते हैं ये प्रसन्न कर डाला तो जीवन झिंगालाला इस तरह के सवाल पढ़ लीजिए तो नौकरी पक्की ! BPSC TRE 1 GS में पुछे गये सवाल Seven Easy Steps For Cracking Govt Job Exam-yahan se padho