//adsense code

Introduction to CSS3 Week 1 Answers

Introduction to CSS3 Week 1

by University of Michigan



Introduction to CSS3 Week1 answer University of Michigan

Styling Syntax and Theory Quiz


1. Assume the following rule is the only one that styles the body element:

body{
font-family: Cursive, Helvetica, Verdana;
}

What happens if the browser doesn't support any of these font families?

a) The text will be displayed in Cursive

b) The text will be displayed in the default browser font-family

c) The text will not be displayed

Ans: b


2. Assume the following rule is the only one that styles the body element:

body{
font-family: Cursive, Helvetica, Verdana;
}

What happens if the browser doesn't support Cursive or Helvetica?

a) The text will not be displayed

b) The text will be displayed in Cursive

c) The text will be displayed in Verdana

Ans: c

3. A block element takes up the full width of it's parent, even if the content is smaller than the parent. So two block elements at the same will not be side-by-side.

/ Block elements take up the full width of the browser, even if the content is small. /

True

4. The browser defaults override rules specified in an external style sheets.

False


5. The default display value for <a> element is:

a) block

b) inline

c) inline-block

d) none

Ans: b


6. The default display value for <span> is:

a) block

b) inline

c) inline-block

d) none

Ans: b


7. If your body tag uses the style attribute style="text-align:center", you can overwrite that property by using the CSS3 rule.

body{
text-align: left;
}

False

8. Inline elements take up the full width of the browser, even if the content is smaller than the browser size.

False


9. Internal styling (rules specified in the <head> section) override rules specified with the style attribute in a tag.

False


10. Using the code below, will the body of the page have the background-color defined in the file style.css or the background color define in the <style> tag?

<head>
<meta charset = "UTF-8">
<title>Test code</title>
<link rel "stylesheet" href = "style.css">
<style>
body{
background-color: #44CCDD;
}
</style>
</head>
<style>

A.) <style>
B.) style.css

Ans: A

11. What is wrong with the following code?

body{
color: #000000;
background-color:#FFFFFF
font-family: Times, Arial, Cursive;
}

a) There is a missing semicolon

b) You can't style three properties in a single rule

c) This is a valid rule Correct

Ans: a


12. What is wrong with the following rule?body{

color: #000000;
background-color:#FFFFFF;
font-family: Times, Arial, Cursive;
}

a) You can't specify three styles in a single rule

b) You can't specify three options for font-family.

c) This is a valid rule

Ans: c


13. Which CSS3 property is used to center text? (Provide on the property, not the value!)

text-align

Which of the following is not an option for specifying a color in CSS3?


a) hexadecimal

b) color name

c) binary

d) rgba

e) rgb

Ans: c


14. Which of the following is the best way to convey that your text has special meaning?

a) Using a combination of font size and color to signify the important text

b) Using semantic tags in addition to color and/or font.

c) Using colors to signify the important text

d) Using a larger font size to signify the important text

Ans: b

/The semantic tags convey meaning that goes beyond appearance/



Related Posts

Subscribe Our Newsletter

0 Comments to "Introduction to CSS3 Week 1 Answers"

Post a Comment

Share your view here!!