CSS3 Exam With Questions And Accurate Answers Which of the following is not an option for specifying a color in CSS3? A. hexadecimal B. binary C. rgba D. color name E. rgb - Answer B If your body tag uses the style attribute style="text-align:center", you can overwrite that property by using the CSS3 rule. ( T/F ) body{ text-align: left; } - Answer F What is wrong with the following rule? body{ color: #000000; background-color:#FFFF FF; font-family: Times, Arial, Cursive; } A. This is a valid rule B. You can't specify three options for font-family C. You can't specify three styles in a single rule - Answer A 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 the default browser font-family B. The text will not be displayed C. The text will be displayed in Cursive - Answer A The browser defaults override rules specified in an external style sheets. ( T/F ) - Answer F 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> A. <style> B. style.css - Answer A Internal styling (rules specified in the <head> section) override rules specified with the style attri bute in a tag. ( T/F ) - Answer F The default display value for <a> element is: A. inline B. inline-block C. block D. none - Answer A The default display value for <span> is: A. inline-block B. none C. inline D. block - Answer C A block element takes up the full width of it's parent, even if the content is smaller than th e parent. So two block elements at the same will not be side- by-side. ( T/F ) - Answer T Inline elements take up the full width of the browser, even if the content is smaller than t he browser size. ( T/ F) - Answer F Which CSS3 property is used to center text? (Provide on the property, not the value!) - Answer tex t-align Which of the following is the best way to convey that your text has special meaning? A. Using a larger font size to signify the important text B. Using semantic tags in addition to color and/or font. C. Using a combination of font size and color to signify the important text D. Using colors to signify the important text - Answer B Given this rule: div{ border-width:10px 5px; } what is the width of the right border? - Answer 5 The margin is the space between elements. (T/F) - Answer T Padding is... A. The space between an element and its border B. The space between two elements C. The space reserved for an element - Answer A
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Zayla. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.49. You're not tied to anything after your purchase.