Vous êtes sur la page 1sur 5

1) Choose the correct Inline style sheet.

a) <span STYLE="font-family: Arial, sans-serif ;font-size : 10pt">See Page 1</span>


b)<span> STYLE="font-family: Arial, sans-serif ;font-size : 10pt">See Page 1</span>
c)<span FONT="font-family: Arial, sans-serif ;font-size : 10pt">See Page 1</span>

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) What does CSS stand for?

a) Creative Style Sheets


b) Computer Style Sheets
c)  (your answer) Cascading Style Sheets 
d) Cascade Style Sheets
e) Colorful Style Sheets

4) Where in an HTML document is the correct place to refer to an external style sheet?

a) In the <body> section


b) At the end of the document
c) At the top of the document
d) In the <head> section 
e) Between head and body

5) Which HTML tag is used to define an internal style sheet?

a) css
b) text/style
c) style
d) script

6) Which HTML attribute is used to define inline styles?

a) font
b) styles
c) css
d) text
e) style 

7) Which is the correct CSS syntax?

a) body {color: black} 


b) body:color=black
c) {body:color=black(body}
d) {body;color:black}

8) 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

9) Which property is used to change the background color?


a) bgcolor:
b) background-color: 
c) color:

10) How do you add a background color for all "<h1>" elements?

a) all.h1 {background-color:#FFFFFF}
b) h1.all {background-color:#FFFFFF}
c) h1 {background-color:#FFFFFF} 

11) How do you change the text color of an element?

a) text-color:
b) color: 
c) text-color=
d) font-color:

12) Which CSS property controls the text size?

a) font-style
b) text-style
c) font-size 
d) text-size

13) What is the correct CSS syntax for making all the <p> elements bold?

a) p {text-size:bold}
b) p {font-weight:bold} 
c) style:bold
d) p{font:bold}

14) How do you display hyperlinks without an underline?

a) a {decoration:no underline}
b) a {text-decoration:no underline}
c) a {underline:none}
d) a {text-decoration:none} 

15) How do you make each word in a text start with a capital letter?

a) text-transform:uppercase
b) text-transform:capitalize 
c) You can't do that with CSS

16) How do you change the font of an element?

a) fon-face:
b) font-family: 
c) f:
d) font-style:

17) How do you make the text bold?

a) font:b
b) style:bold
c) font-weight:bold 

18) 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?
a) border-width:10px 20px 5px 1px
b) border-width:10px 1px 5px 20px 
c) border-width:10px 5px 20px 1px
d) border-width:5px 20px 10px 1px

19) How do you change the left margin of an element?

a) padding:
b) indent:
c) margin:
d) text-indent:
e) margin-left: 

20) 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) Yes
b) No 

21) How do you make a list that lists its items with squares?

a) type: square
b) list-style-type: square 
c) list-type: square
d) style-list: square

22) What is the correct HTML for referring to an external style sheet?

a) <link rel="stylesheet" type="text/css" href="mainstyle.css"> 


b) <style src="mainstyle.css">
c) <stylesheet>mainstyle.css</stylesheet>
d) <link url="stylesheet" type="text/css" href="mainstyle.css">

23) Which HTML tag is used to define an internal style sheet?

a) <script>
b) <css>
c) <stylesheet>
d) <style> 

24) Which HTML attribute is used to define inline styles?

a) styles
b) class
c) font
d) style 

25) What is the correct CSS syntax for making all the <p> elements bold?

a) p {font-weight:bold} 
b) p {text-size:bold}
c) <p style="text-size:bold">
d) <p style="font-size:bold">

26) How do you make each word in a text start with a capital letter?

a) text-transform:capitalize
b) ext-transform:uppercase 
c) You can't do that with CSS

27) How do you change the left margin of an element?

a) left-margin:
b) margin:
c) margin-left: 
d) text-indent:

28) What are the three methods for using style sheets with a web page

a) Dreamweaver, GoLive or FrontPage


b) Inline, embedded or document level and external 
c) Handcoded, Generated or WYSIWYG

29) What are the three methods of implementing CSS?

a) Direct, Indirect, and External


b) Internal, External, and Embedded
c) Inline, Embedded, and External

30) table {color: blue;}


In the code snippet above, which part represents the property?

a) Table
b) Color
c) Blue

31) table {color: blue;}


With the code snippet above in use, what happens to a table?

a) The table border would be colored blue.


b) The table background would be colored blue.
c) The text inside the table would be colored blue.

32) An HTML element can have different display properties by creating more than one
class. What would you add to a paragraph element if you wanted to use a class
named hiliteto it? 

a) class="hilite"
b) style="hilite"
c)style="class: hilite"

33) Which of the following is the best description of a contextual selector?

a) It's when a style rule overrides all other styles rules assigned to an element.
b) It's when a style rule is applied only when it occurs within a specific context within
the document
c) Nice try with the trick question! There's no such thing as a contextual selector.

34) In addition to specifying specific fonts, in CSS you can also specify generic font families.
There are five generic font families, including serif, sans-serif, cursive, and fantasy. Which of
the following is the generic font family I didn't name?

a) Roman
b) Italic
c) Monospace

35) With CSS you can control the amount of space between letters, the amount of space
between words, and the amount of space between lines of text. Choose the correct comment
regarding that statement.

a) The only one of those three you can control is the space between lines, with the
options being a single-space or double-spaced line.
b) No way, none of those things can be controlled unless you put up an image in
place of text.
c) What's with the easy questions? That's a true statement.

36) In regards to the CSS box model, where is the marginproperty located?

a) Inside the box.


b) Outside the box.
c) It could be inside or outside the box, depending on where you place it in your code

37) With CSS you can set paragraphs to a specific size, and even add a scrollbar to them if the
content is too big for the paragraph. What property would you use to allow the scrollbar if
needed?

a) (duh!) scrollbar
b) size-exception
c) overflow

38) What does the CSS float property do?

a) Allows users to drag and drop images to another location on the page.
b) Aligns an HTML element to the right or left while allowing content to flow around it.
It will also center an element, but content does not flow around a centered element.
c) Allows web designers to overlap elements or to stack them on top of each other.

Vous aimerez peut-être aussi