1. What does CSS stand for?
A) Cascading Style Sheets
B) Colorful Style Sheets
C) Computer Style Sheets
D) Creative Style Sheets
2. What is the correct HTML for referring to an external style sheet?
A) <stylesheet>mystyle.css</stylesheet />
B) <link rel="stylesheet" type="text/css" href="mystyle.css">
C) <style src="mystyle.css" />
3. Where in an HTML document is the correct place to refer to an external style sheet?
A) At the top of the document
B) In the <body> section
C) At the end of the document
D) In the <head> section
4. Which HTML tag is used to define an internal style sheet?
A) <css>
B) <script>
C) <style>
D) All of above
5. Which HTML attribute is used to define inline styles?
A) font
B) style
C) styles
D) class
6. Which is the correct CSS syntax?
A) body {color: black}
B) body:color=black
C) {body:color=black(body}
D) {body;color:black}
7. How do you insert a comment in a CSS file?
A) ' this is a comment
B) /* this is a comment */
C) // this is a comment //
D) // this is a comment
8. Which property is used to change the background color?
A) background-color:
B) color:
C) bgcolor:
D) All of above
9. How do you add a background color for all <h1> elements?
A) h1 {background-color:#FFFFFF}
B) all.h1 {background-color:#FFFFFF}
C) h1.all {background-color:#FFFFFF}
D) None of this
10. How do you change the text color of an element?
A) text-color:
B) color:
C) fgcolor:
D) text-color=
11. What is the correct CSS syntax for making all the <p> elements bold?
A) <p style="text-size:bold">
B) p {text-size:bold}
C) p {font-weight:bold}
D) <p style="font-size:bold">
12. How do you display hyperlinks without an underline?
A) a {underline:none}
B) a {text-decoration:none}
C) a {text-decoration:no underline}
D) a {decoration:no underline}
13. How do you make each word in a text start with a capital letter?
A) text-transform:uppercase
B) You can't do that with CSS
C) text-transform:capitalize
D) None of this
14. How do you change the font of an element?
A) f:
B) font=
C) font-family:
D) None of this
15. How do you make the text bold?
A) font:b
B) style:bold
C) font-weight:bold
D) fonr-style:bold
16. How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
A) border-width:5px 20px 10px 1px
B) border-width:10px 1px 5px 20px
C) border-width:10px 5px 20px 1px
D) border-width:10px 20px 5px 1px
17. How do you change the left margin of an element?
A) text-indent:
B) margin:
C) indent:
D) margin-left:
18. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?
A) No
B) Yes
19. How do you make a list that lists its items with squares?
A) list-type: square
B) type: 2
C) type: square
D) list-style-type: square
20. Which snippet of CSS is commonly used to center a website horizontally?
A) Margin: auto 0;
B) Margin: 0 auto;
C) Margin: center;
D) Site-Align: center;
21. What property is used to change the size of text?
A) font-size
B) text-size
C) size
D) font-weight
22. A declaration is terminated by a..
A) . period
B) ; semi colon
C) ! exclamation mark
D) : colon
23. You can change the look of the entire site at once when CSS is defined where?
A) On your computer
B) In the database
C) In an external file
D) With each block of text
Answer
1) A
2) B
3) D
4) C
5) B
6) A
7) B
8) A
9) A
10) B
11) C
12) B
13) C
14) C
15) C
16) B
17) D
18) A
19) D
20) A
21) A
22) B
23) C
Posted By : Hemangi Zala
No comments:
Post a Comment