Web Technology (Chapter - CSS) Solved MCQs (Set-1)
Web Technology (Chapter - CSS) Solved MCQs (Set-1)
Chapter: CSS
6. With an--------style sheet, you can change the look of an entire web site, by
changing one file!
A. CSS
B. inline
C. internal
D. external
Answer: D
7. An external style sheet can be written in any text editor. The file must not
contain
any HTML code, and must be saved with a -------extension.
A. .CSS
B. .TXT
C. .JS
D. .XLS
Answer: A
13. To define a style for special types of elements, add a-----attribute is apply to the
element
A. color
B. font-family
C. font -size`
D. class
Answer: D
14. -------are used to explain the code, and may help when you edit the source code
at
a later date.
A. color
B. font-family
C. font -size`
17. Which of the following is the correct syntax for referring the external style
sheet?
A. <style src = example.css>
B. <style src = "example.css" >
C. <stylesheet> example.css </stylesheet>
D. <link rel="stylesheet" type="text/css" href="example.css">
Answer: B
22. The HTML attribute used to define the internal style sheet is ------
A. <style>
B. style
C. <link>
D. <script>
Answer: B
23. Which of the following CSS property is used to set the background image of an
element?
A. background-attachment
B. background-image
C. background-color
D. None of the above
Answer: B
24. Which of the following is the correct syntax to make the background-color of
all
paragraph elements to yellow?
A. p {background-color : yellow;}
25. Which of the following is the correct syntax to display the hyperlinks without
any underline?
A. a {text-decoration : underline;}
B. a {decoration : no-underline;}
C. a {text-decoration : none;}
D. None of the above
Answer: C