View the step-by-step solution to:

1 of 25 XHTML selectors need a hash mark [#] before the selector name. a) True b) False Question 2 of 25 Define the underlined part of this rule:

1 of 25


XHTML selectors need a hash mark [#] before the selector name.





a) True





b) False




Question

2 of 25


Define the underlined part of this rule: h1 { color: blue}





a) Declaration Value





b) Selector





c) Declaration Property





d) Element




Question

3 of 25


Which is not a part of a rule within a style sheet?





a) Link to the style sheet





b) The selector element





c) The declaration property





d) The declaration value




Question

4 of 25


CSS is good to use since all browsers apply it uniformly.





a) True





b) False




Question

5 of 25


Which of the follow configures a class called logo with blue text, 14px, and Arial or a sans-serif font using CSS?





a) #logo { text-color: blue; font-size: 14px; font-family: Arial, sans-serif; }





b) .logo { color: blue; font-size: 14px; font-family: Arial, sans-serif; }





c) #logo { color: blue; font-size: 14px; font-family: Arial, sans-serif; }





d) .logo { text-color: blue; font-size: 14px; font-family: Arial, sans-serif; }




Question

6 of 25


CSS syntax consists of two parts: selector and declaration.





a) True





b) False




Question

7 of 25


You cannot apply the same styles to multiple selectors. You have to list each one out individually.





a) True





b) False




Question

8 of 25


Which of the following is the extension for an external style sheet?





a) htm





b) ess





c) css





d) There is no extension necessary.




Question

9 of 25


Which of the following is a good "rule of thumb" when naming classes in CSS?





a) Don't worry about the length of the class name.





b) Name class selectors after the formatting (i.e., "large Bold").





c) Use XHTML element names whenever possible to help simplify things.





d) Use names that describe what the class will be use used for. i.e. "footer"




Question

10 of 25


Define the underlined part of this rule: h1 { color: blue}





a) Declaration Value





b) Selector





c) Declaration Property





d) Element




Question

11 of 25


Which of the follow configures a background color of #FFCCFF for a web page?





a) body { background: #FFCCFF; }





b) document { background-color: #FFCCFF; }





c) body { background-color: #FFCCFF; }





d) document { background: #FFCCFF; }




Question

12 of 25


What is wrong with this line of code? body {background-color: 000066}





a) It is missing a period before "body".





b) The colon after "background-color" needs to be a semi-colon.





c) It is missing the pound sign before "body"





d) It is missing the pound sign before the color code.




Question

13 of 25


Class selectors can be used to define the style of an element without using XHTML tags.





a) True





b) False




Question

14 of 25


You can get rid of the underline in hyperlinks by using the text-decoration property on a selector called "a", for the anchor tag.





a) True





b) False




Question

15 of 25


Id selectors are used to help apply a unique style to one area of a web page.





a) True





b) False




Question

16 of 25


You can only use Hexadecimal codes for colors in CSS.





a) True





b) False




Question

17 of 25


Which of the following can be a CSS selector?





a) A class name





b) An XHTML element





c) An id name





d) All of the above




Question

18 of 25


CSS stands for Cascading Simple Styles.





a) True





b) False




Question

19 of 25


What do you use in order to associate a web page with an external style sheet?





a) <link />





b) <a>





c) <target>





d) <ref>




Question

20 of 25


Class selectors need a period (.) before the class name within the style sheet.





a) True





b) False




Question

21 of 25


Which type of unit cannot be used to set the font-size of text within a style sheet?





a) Text Values





b) Percentage Units





c) Cm (Centimeter) Units





d) Px (Pixels) Units




Question

22 of 25


What declaration property is missing from this line of code? H2 {"____": Arial, sans-serif}





a) font-size





b) font-family





c) font





d) text-family




Question

23 of 25


Which one of these is NOT a method of incorporating CSS?





a) Embedded styles





b) External Styles





c) Inline Styles





d) Declaration Styles




Question

24 of 25


Define the underlined part of this rule: h1 { color: blue}





a) Declaration Value





b) Selector





c) Declaration Property





d) Element




Question

25 of 25


What element is useful in creating areas on a web page that is physically separated from other areas?





a) <span>





b) <div>





c) <style>





d) <link />

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question