- @media rules can be used to specify media groups in CSS.
- True
- False - correct answer
- _____ can ensure that your own margin and padding values have precedence.
- * {margin: 0; padding: 0} - correct answer
- * {margin, padding: 0}
- * {margin: clear; padding: clear}
- none of the above
- _____ express the location of an element within the hierarchy of elements.
- Contextual selectors - correct answer
- Inline selectors
- Attribute selectors
- Id selectors
- _____ positioning allows browsers to place an element based on where it flows in the document.
- Absolute
- Relative
- Static - correct answer
- Fixed
- _____ positioning enables you to place an element at specific coordinates either on a page or within a containing element.
- Fixed
- Absolute - correct answer
- Inherit
- Static
- _____ positioning is essentially the same as not using any CSS positioning at all.
- Static - correct answer
- Relative
- Absolute
- Fixed
- _____ positioning moves an element in respect to its default position.
- Static
- Relative - correct answer
- Absolute
- Fixed
- _____ should come last when creating a rollover effect.
- visited
- lang
- hover
- active - correct answer
- A computer screen is paged, visual, bitmap and static.
- true
- false - correct answer
- A single Web page can contain at most one form.
- true
- false - correct answer
- A style sheet in which the output device is not specified is applied to all devices, unless it is superceded by a style designed for a particular device.
- True - correct answer
- False
- A user's operating system does not impact the appearance of a document.
- True
- False - correct answer
- A value of auto for the stacking style allows the browser to determine stacking order using the default rules.
- True - correct answer
- False
- All output media can be described based on some common properties.
- True - correct answer
- False
- By changing the list display style to _____, you can create a horizontal list.
- inline - correct answer
- table
- block
- none
- By default, the elements that are formatted later in an HTML or XHTML document are stacked on top of earlier elements.
- True - correct answer
- False
- By default, the height of an element is determined by its content.
- True - correct answer
- False
- Case 4-1: Ken has built a Web site for his homework assignment. He has his links for each chapter appear on the page with a blue background image behind each link. Ken has each link appear as green with no underline marks. To keep links that have been seen from changing color, Ken will need to make sure he has set the color to green in which style?
- a:link
- a:visited - correct answer
- a:hover
- a:active
- Case 4-2: The Yoga Club has a Web site that consists of a picture of the yoga room along with the definition of yoga on the left. On the right is a list of Upcoming Events, the company logo, and then yoga teacher training dates. The Web designer Mary needs some help with CSS to make sure the pages print correctly. Which rule can be used to specify all of the yoga Web site's styles in one CSS file?
- #mediagroup
- @media - correct answer
- @groupmedia
- media
- Case 4-2: The Yoga Club has a Web site that consists of a picture of the yoga room along with the definition of yoga on the left. On the right is a list of Upcoming Events, the company logo, and then yoga teacher training dates. The Web designer Mary needs some help with CSS to make sure the pages print correctly. To cause the definition of yoga to print at the top of the page like a list, you could use _____.
- display: list-item - correct answer
- display: top
- display: list
- display: top-item
- Case 4-2: The Yoga Club has a Web site that consists of a picture of the yoga room along with the definition of yoga on the left. On the right is a list of Upcoming Events, the company logo, and then yoga teacher training dates. The Web designer Mary needs some help with CSS to make sure the pages print correctly. Which attribute style tag should be used to specify the print styles?
- href
- text
- type
- media - correct answer
- Case 4-2: The Yoga Club has a Web site that consists of a picture of the yoga room along with the definition of yoga on the left. On the right is a list of Upcoming Events, the company logo, and then yoga teacher training dates. The Web designer Mary needs some help with CSS to make sure the pages print correctly. Which style would be best to prevent the pictures from printing when this Web page is printed?
- display - correct answer
- aural
- visible
- none of the above
- Case 4-3: Peter is trying to decide the best way to adjust the way his Web site prints. He would like his tables to print at the top of a page. He would also like his pages not to be cut off at the edges when printing by specifying for them to print in 8 in by 10 in format. Peter can cause his pages not to be cut off by setting the _____ style.
- @size
- @media
- @page - correct answer
- @margin
- Contextual selectors can only be used in internal style tags.
- True
- False - correct answer
- Drop caps look better if you _____ the first line.
- increase the height
- decrease the height - correct answer
- decrease the width
- increase the width
- Each table in a Web page follows a basic structure consisting of the table element and a collection of table columns nested in the table element.
- True
- False - correct answer
- For <img class="front page" src="image1.jpg>, which class does this image element belong?
- front
- front page
- page
- both front and page - correct answer
- HTML and XHTML support attributes to create hover effects.
- True
- False - correct answer
- If you browser doesn't support the pseudo-element to create a drop-cap, you could use a _____ element and apply your style to it to get the effect.
- p
- div
- h1
- span - correct answer
- In the style li b{color: blue}, b is the _____ element.
- parent
- main
- descendant - correct answer
- base
- In the type li b{color: blue}, li is the _____ element.
- child
- parent - correct answer
- ascendant
- descendent
- Not all browsers support contextual selectors.
- True - correct answer
- False
- Selector patterns can be used to create styles for elements based upon their location.
- True - correct answer
- False
- Setting the display style to "none" hides an element but does not remove it from the page flow.
- True
- False - correct answer
- Static positioning is used more often than absolute positioning.
- True
- False - correct answer
- The _____ selector matches elements whose att attribute begins with val.
- [att]
- [att^="val"] - correct answer
- [att$="val"]
- [att*="val"]
- The _____ selector matches elements whose att attributes contains the value val.
- [att]
- [att^="val"]
- [att$="val"]
- [att*="val"] - correct answer
- The _____ selector matches elements whose att attribute equals val.
- [att]
- [att="val"] - correct answer
- [att~="val"]
- [att|="val"]
- The _____ selector matches elements whose att attribute value is a hyphen-separated list of words beginning with val.
- [att]
- [att="val"]
- [att~="val"]
- [att|="val"] - correct answer
- The _____ selector matches elements whose att attribute value is a space-separated list of words, one of which matches val exactly.
- [att]
- [att="val"]
- [att~="val"] - correct answer
- [att|="val"]
- The _____ style can be used to cause a list to use your own image file for the list marker.
- list-style: image(url)
- list-style-image: image(image)
- list-style-url: url(url)
- list-style-image: url(url) - correct answer
- The _____ value of the display style tells the browser not to display the element.
- null
- none - correct answer
- empty
- hide
- The @screen rule allows you to place media types in a comma-separated list.
- true
- false - correct answer
- The clip style allows you to define a rectangular region through which the element's content can be viewed.
- true - correct answer
- false
- The default position is _____.
- absolute
- relative
- static - correct answer
- fixed
- The general format for a contextual selector is parent: descendant {styles}.
- true
- false - correct answer
- The general syntax for expressing the location of an element is _____.
- parent: descendant {styles}
- parent descendant: {styles}
- parent descendant {styles} - correct answer
- parent.descendant {styles}
- The hover pseudo-class refers to when an element has received the attention of the keyboard or mouse pointer.
- True
- False - correct answer
- The item indicated in the figure above is the _____ value.
- class - correct answer
- id
- name
- null
- The item marked _____ in the figure above represents the visible value of the overflow property.
- 1 - correct answer
- 2
- 3
- 4
Thursday, December 26, 2013
Tutorial 4 Questions 1 through 50
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment