Professional Documents
Culture Documents
(download pdf) New Perspectives on Blended HTML and CSS Fundamentals Introductory 3rd Edition Bojack Test Bank full chapter
(download pdf) New Perspectives on Blended HTML and CSS Fundamentals Introductory 3rd Edition Bojack Test Bank full chapter
https://testbankfan.com/product/new-perspectives-on-blended-html-
and-css-fundamentals-introductory-3rd-edition-bojack-solutions-
manual/
https://testbankfan.com/product/new-perspectives-on-html-and-css-
comprehensive-6th-edition-carey-test-bank/
https://testbankfan.com/product/new-perspectives-on-html-css-and-
xml-comprehensive-4th-edition-carey-test-bank/
https://testbankfan.com/product/new-perspectives-on-microsoft-
word-2013-introductory-1st-edition-zimmerman-test-bank/
New Perspectives on Computer Concepts 2018 Introductory
20th Edition Parsons Test Bank
https://testbankfan.com/product/new-perspectives-on-computer-
concepts-2018-introductory-20th-edition-parsons-test-bank/
https://testbankfan.com/product/new-perspectives-on-microsoft-
powerpoint-2013-introductory-1st-edition-zimmerman-test-bank/
https://testbankfan.com/product/new-perspectives-on-xml-
comprehensive-3rd-edition-carey-test-bank/
https://testbankfan.com/product/new-perspectives-on-computer-
concepts-2018-introductory-20th-edition-parsons-solutions-manual/
https://testbankfan.com/product/new-perspectives-on-xml-
comprehensive-3rd-edition-carey-solutions-manual/
Tutorial 6: Creating Fixed-Width Layouts
MULTIPLE CHOICE
2. A layout that does not appear on the screen as planned is called a ____.
a. failed layout c. column drop
b. broken layout d. fluid layout
ANS: B PTS: 1 REF: HTML 296
11. Which of the following is a block-level container that does not have any formatting associated with it
but is used with an ID or class to apply CSS styles?
a. divide c. split
b. div d. table
ANS: B PTS: 1 REF: HTML 301
13. The ____ selector is used to select all of the elements on the Web page.
a. universal c. id
b. class d. element
ANS: A PTS: 1 REF: HTML 301
14. It is a good coding practice to zero-out any margins and padding using the ____ selector.
a. id c. class
b. universal d. any of the above
ANS: B PTS: 1 REF: HTML 301
16. When one value is given for padding, the value is applied to ____.
a. all four sides of the box
b. the right and left sides of the box only
c. the top and bottom sides of the box
d. none of the above; it is not possible to only give one value for padding
ANS: A PTS: 1 REF: HTML 302
17. When four values are given for margins, they are applied to each side in the following order: ____.
a. left, right, top, bottom c. right, top, bottom, left
b. top, right, bottom, left d. left, top, right, bottom
ANS: B PTS: 1 REF: HTML 302
19. If your screen width is 1024 pixels, which of the following is an illegal width for your layout?
a. 800 c. 960
b. 900 d. 1024
ANS: D PTS: 1 REF: HTML 305
21. Which of the following values for left and right margins centers the layout?
a. center c. equal
b. default d. auto
ANS: D PTS: 1 REF: HTML 306
23. If the width in the container div is set to 900 pixels, which of the following breaks the layout?
a. Header div has a width of 820 pixels.
b. Footer div has a width of 900 pixels.
c. Sidebar div has a width of 150 pixels and main column has a width of 760 pixels.
d. Sidebar div has a width of 200 pixels and main column has a width of 700 pixels.
ANS: C PTS: 1 REF: HTML 309
25. The width that defines the size of the containing box is called ____.
a. content width c. parent container width
b. column width d. none of the above
ANS: C PTS: 1 REF: HTML 309
26. The ____ container width is the width of the containing box.
a. master c. baseline
b. parent d. comprehensive
ANS: B PTS: 1 REF: HTML 309
29. If the width of the parent container section is 960 pixels, margins are 20 pixels, border is 0 pixels, and
padding values are 10 pixels, then the content width would be ____ pixels.
a. 900 c. 930
b. 920 d. 860
ANS: A PTS: 1 REF: HTML 310
31. A white space between side-by-side columns can be set up using which of the following?
a. the left margin of the left column c. the right margin of the left column
b. the right margin of the right column d. none of the above
ANS: C PTS: 1 REF: HTML 315
32. The ____ element is an HTML element that marks content that is not the main content but is extra, or
tangential content.
a. tangential c. aside
b. correlated d. associated
ANS: C PTS: 1 REF: HTML 315
35. When an element is displayed in the exact specified position, ____ positioning is used.
a. default c. absolute
b. relative d. center
ANS: C PTS: 1 REF: HTML 323
37. The bottom property with a positive value moves the element ____.
a. away from the top edge of the screen c. down
b. up d. closer to the bottom edge of the screen
ANS: B PTS: 1 REF: HTML 323
39. ID selectors can be created by entering the ____ flag character followed by the ID selector name.
a. % c. ^
b. # d. &
ANS: B PTS: 1 REF: HTML 318
40. The top property with a negative value positions an element ____.
a. above the normal position
b. below the normal position
c. none of the above; negative values are invalid
d. none of the above; does not have any effect
ANS: A PTS: 1 REF: HTML 323
41. The values for the left and top properties can be expressed in ____.
a. pixels c. em values
b. percentages d. all of the above
ANS: D PTS: 1 REF: HTML 323
45. As shown in the accompanying figure, a positive h-shadow value pushes the shadow ____.
a. to the left c. down
b. up d. to the right
ANS: D PTS: 1 REF: HTML 326
46. As shown in the accompanying figure, a positive ____ value pushes the shadow down.
a. shadow-down c. push-shadow
b. v-shadow d. h-shadow
ANS: B PTS: 1 REF: HTML 326
47. As shown in the accompanying figure, the border-radius property sets the size of the ____ of an
element.
a. square corners c. vertices
b. round corners d. perimeter
ANS: B PTS: 1 REF: HTML 326
48. As shown in the accompanying figure, the ____ value of the box-shadow property specifies the
amount of blur around the edges.
a. distort c. distend
b. visibility d. blur
ANS: D PTS: 1 REF: HTML 326
49. ____ columns are the columns that appear to the left or to the right of the main column.
a. Sidebar c. Section
b. Flanking d. all of the above
ANS: B PTS: 1 REF: HTML 328
50. The order of the content in the document flow is defined by ____.
a. element order c. source order
b. stack order d. container order
ANS: C PTS: 1 REF: HTML 331
51. Which of the following properties creates a 3D shadow effect like the kind in the accompanying
figure?
a. 3D-shadow c. drop-shadow
b. box-shadow d. h-shadow
ANS: B PTS: 1 REF: HTML 333
52. Which of the following values for the box-shadow property shown in the accompanying figure will
specify how far the shadow will push to the right?
a. spread c. offset
b. shadow-right d. h-shadow
ANS: D PTS: 1 REF: HTML 333
53. As shown in the accompanying figure, the ____ value for the box-shadow property specifies the
additional width of the shadow.
a. offset c. spread
b. shadow-width d. v-shadow
ANS: C PTS: 1 REF: HTML 333
54. As shown in the accompanying figure, the ____ value for the box-shadow property specifies how
far the shadow will drop.
a. h-shadow c. drop
b. descent d. v-shadow
ANS: D PTS: 1 REF: HTML 333
55. With the box-shadow property, you can specify all of the following EXCEPT ____.
a. the size of the shadow c. the width of the blur along the shadow
b. the depth of the shadow d. the distance it is offset from the element
ANS: B PTS: 1 REF: HTML 333
57. With the box-shadow property, set the blur value to ____ to create a shadow with sharp edges.
a. 0 c. sharp
b. none d. maximum
ANS: A PTS: 1 REF: HTML 334
59. Which of the following measurements CANNOT be used to indicate the values of the
border-radius properties?
a. px c. auto
b. em d. percent
ANS: C PTS: 1 REF: HTML 337
60. The shorthand property for border-radius can specify four values in a clockwise direction as
follows: ____.
a. top-left, top-right, bottom-right, bottom-left
b. bottom-left, bottom-right, top-right, top-left
c. top-right, top-left, bottom-left, bottom-right
d. bottom-right, bottom-left, top-left, top-right
ANS: A PTS: 1 REF: HTML 337
61. Be sure to ____ the figcaption element inside the figure element.
a. scroll c. nest
b. base d. hide
ANS: C PTS: 1 REF: HTML 346
62. When an image is provided for informational purposes, it can be marked with the ____ element rather
than a paragraph or another block-level element.
a. image c. graphic
b. picture d. figure
ANS: D PTS: 1 REF: HTML 346
63. The figure element can include a caption, which you mark using the ____ element.
a. footer c. label
b. legend d. figcaption
ANS: D PTS: 1 REF: HTML 346
64. To import rules from one style sheet into another one, the ____ rule needs to be used.
a. @imp c. import
b. @import d. imp
ANS: B PTS: 1 REF: HTML 353
65. What is wrong with the code @import url(header.css)?
a. The file extension is not needed.
b. The semicolon at the end of the statement is missing.
c. The @ symbol is not needed.
d. Nothing is wrong; everything is syntactically correct.
ANS: B PTS: 1 REF: HTML 354
67. A(n) ____ CSS style sheet specifically helps developers start with a clean slate.
a. automatic c. reset
b. baseline d. hidden
ANS: C PTS: 1 REF: HTML 354
68. Web developers have a collection of various ____, with CSS, for common layouts such as two-column
and three-column designs.
a. indices c. wizards
b. templates d. baselines
ANS: B PTS: 1 REF: HTML 354
69. Calculating the specificity using weighting methodology, which of the following selectors have the
highest weight?
a. id selectors c. class selectors
b. element selectors d. type selectors
ANS: A PTS: 1 REF: HTML 356
70. Calculating the specificity using weighting methodology, which of the following selectors have the
lowest weight?
a. class selectors c. id selectors
b. element selectors d. universal selectors
ANS: B PTS: 1 REF: HTML 356
Kyra is designing a new Web page for her college volleyball team, and she receives some help from
Max. He is not as experienced in Web design as Kyra is, and she provides a primer in terminology so
they can clearly understand each other.
71. Kyra wants to put the college’s logo and team banner in the bar at the top of the page. What does she
tell Max is the term for this space?
a. footer c. sidebar
b. header d. navbar
ANS: B PTS: 1 REF: HTML 299 TOP: Critical Thinking
72. Max suggests that it would be nice to have a vertical column down the side of the page with links to
players’ individual pages. What is this column called?
a. navbar c. content
b. sidebar d. main window
ANS: B PTS: 1 REF: HTML 300 TOP: Critical Thinking
73. Where does Kyra tell Max the primary page content should be placed?
a. header c. main content area
b. footer d. sidebar
ANS: C PTS: 1 REF: HTML 300 TOP: Critical Thinking
74. Max asks Kyra where the team contact information should go. Kyra says that the common place is the
bottom of the page. What is this space called?
a. banner c. bottom bar
b. footer d. sidebar
ANS: B PTS: 1 REF: HTML 300 TOP: Critical Thinking
75. The layout that Kyra and Max selected includes five boxes that will contain different information.
What is the name of the large box in which they can place all other boxes?
a. container section c. wrapper
b. table d. both a and c
ANS: D PTS: 1 REF: HTML 305 TOP: Critical Thinking
Leon recently started to use CSS positioning properties to position his Web page elements and has
been very frustrated. He asked his cousin James to give him some examples and general information
that will help him better understand what to do.
76. Which of the following does James tell Leon that he can use with relative positioning to position an
image 30 pixels to the left from its current position?
a. left: 30px c. right: -30px
b. left: -30px d. left: 30em
ANS: B PTS: 1 REF: HTML 323 TOP: Critical Thinking
77. Which of the following does James tell Leon that he can use with absolute positioning to position an
image 50 pixels from the top?
a. top: -50px c. bottom: -50px
b. top: 50em d. top: 50px
ANS: D PTS: 1 REF: HTML 323 TOP: Critical Thinking
78. Which of the following units of measurement is NOT available for Leon to express values for
positioning properties?
a. picas c. percentages
b. pixels d. points
ANS: A PTS: 1 REF: HTML 323 TOP: Critical Thinking
79. Which of the following is NOT a true statement James can make to Leon?
a. The left property with a positive value positions an element a certain distance from the
left edge of the screen.
b. The top property with a positive value positions an element a certain distance from the
top edge of the screen.
c. The bottom property with a negative value will move an element down the screen.
d. The right property with a negative value will move an element to the left.
ANS: D PTS: 1 REF: HTML 323 TOP: Critical Thinking
80. After using positioning values for a while, Leon is surprised to see one of the following values in the
code of his cousin James because that value is not used nearly as often as the other values. Which of
the following values is he surprised to see?
a. left c. bottom
b. top d. none of the above
ANS: C PTS: 1 REF: HTML 323 TOP: Critical Thinking
TRUE/FALSE
2. In the fluid layout, pages and columns are set to a certain width.
3. A horizontal header on the top of the page usually is used to display a banner or corporate logo.
6. Two elements on the same page can have the same id attribute.
8. To center a layout, you apply auto as the value for the left and right margins.
10. You cannot include more than one aside element in a Web page.
11. The top and bottom margins for an element figure into the calculation for the column width and the
content width.
12. If the footer element has the bottom margins set at 0, it is flush with the bottom of the browser
window.
13. The element can be moved to the right using a positive value for the right property.
14. The use of lorem ipsum text began with Web design.
15. Lorem ipsum text is Latin text that is not distracting because it looks more like natural language, as
opposed to using placeholder words that are repeated over and over again.
16. In a three-column layout, the header, nav, and footer elements span the full width of the
container.
17. Individual corners can be rounded separately using individual border-radius properties like those
shown in the accompanying figure.
18. For columns that are side-by-side, nonfloated elements must be displayed before floated elements.
19. Rounded corners increase the amount of space available for content in an element.
MODIFIED TRUE/FALSE
1. The tangential element marks content that is not the main content. _________________________
ANS: F, aside
2. Layouts are said to be fluid if they expand and contract when the window is resized.
_________________________
3. A narrow column used to display links and content of secondary importance is called a(n) nav.
_________________________
ANS: F, sidebar
4. Someone who uses the universal selector habitually could remove the default behavior of an element
and forget to restyle it. _________________________
5. The value 0 is one of the few values in CSS code that needs a unit of measurement.
_________________________
ANS: F
does not need
doesn’t need
6. Elements are boxes and as such they make full use of properties such as margins, borders, and
padding. _________________________
7. When using relative positioning, an element is displayed in the exact position specified by the
developer. _________________________
ANS: F, absolute
8. The top property with a negative value positions an element below the normal position.
_________________________
ANS: F, above
9. Side columns are columns that appear to the left or to the right of the main column.
_________________________
ANS: F, Flanking
ANS: F, optional
11. With the box-shadow property, the value to place the shadow outside the element is exterior.
_________________________
ANS: F, outset
12. With the box-shadow property, the h-shadow value shifts the shadow to the left.
_________________________
ANS: F, right
13. With the box-shadow property, the v-shadow value shifts the shadow down.
_________________________
14. With the box-shadow property, the interior value is the shadow placement inside an element.
_________________________
ANS: F, inset
15. With the border-radius property, to achieve a wider curve, you use a smaller number of pixels
for the value. _________________________
ANS: F, larger
COMPLETION
1. In a(n) ____________________ layout, the column widths don’t change when the browser window
changes size.
ANS:
fixed-width
fixed width
2. A(n) ____________________ is a div element created for formatting purposes that contains one or
more elements.
ANS:
wrapper
container
3. The ____________________ selector defines the rules for the part of the Web page that surrounds the
content section.
ANS: body
ANS: gutter
5. Most Web browsers display a vertical ____________________ only if the page content exceeds one
screen.
6. A(n) ____________________ is a row at the bottom of the Web page, which usually displays the
contact information for the Web site.
ANS: footer
7. The ____________________ selector is used to select all of the elements on the Web page.
ANS: universal
ANS:
Wrapper
wrapper
11. The ____________________ describes how the contents of the page are recognized by the browser.
12. The ____________________ property value positions an element a certain distance from the left edge
of the screen.
ANS: left
13. The ____________________ element contains an <img> element for image content such as artwork
or a map.
ANS: figure
14. The ____________________ element marks the caption for a figure element.
ANS: figcaption
15. The order of the content in the document flow is called a(n) ____________________.
ANS: comment
18. A style can be imported into an external style sheet using the ____________________ rule.
ANS: @import
19. Web developers often have a collection of CSS code that handles specific style properties for specific
____________________.
ANS:
browsers
Web browsers
versions of Web browsers
20. To resolve style conflicts among different types of selectors, CSS uses ____________________.
ANS: specificity
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a. bottom g. document flow
b. relative positioning h. gutter
c. widget sidebars i. placeholder text
d. aside j. fixed-width
e. header k. broken
f. wrapper l. fluid
1. A layout that does not appear on the screen as planned
2. The text used to demonstrate the typography or layout in a document
3. Describes how the contents of a page are recognized by the browser
4. The property that moves an element up if its value is positive
5. A software add-on used to enhance a particular browser
6. The row that appears on the top of the Web page
7. A div element created for formatting purposes that contains one or more elements
8. An element that marks content that is not the main content
9. Shifting the element’s position from the point where it normally would appear in the document flow
10. A space between the section column and the main column
11. A type of layout in which the column widths don’t change when the browser window changes size
12. A layout that expands or contracts so the content fills the entire screen
ESSAY
ANS:
When creating a style for an id, class, or element selector, it’s a good coding practice to list the
properties in the following order: width, margin, border, and padding. Grouping properties in
this order will help you to locate the pixel values needed to determine the content width. Also, in
fixed-width layouts, you should use a pixel value rather than a keyword for the border width. Browsers
interpret keyword values slightly differently and may assign more or less thickness to a keyword
value. Miscalculating by even one or two pixels could break your layout. For the remaining style
declarations, group the color property with the background-color and background-image
properties. Group the font properties, listing them in the specific order required, and list all of the other
properties and values for the selector in alphabetic order.
ANS:
During the process of designing a Web site, a Web developer or designer is likely to use placeholder
text in place of real content during the design of the layout. Placeholder text is text used solely to
demonstrate the typography or layout in a document, and is also called dummy text or filler text.
Although placeholder text can be any word or short phrase repeated, this may be misleading or
distracting during the design phase. For instance, if a client or designer is distracted by reading this is
placeholder text or a word or phrase that is repeated and used as placeholder text, then the client or
designer is not as focused on the layout and design elements.
Instead, many designers use lorem ipsum text, which is Latin text that is not distracting because it
looks more like natural language, as opposed to using placeholder words that are repeated over and
over again. When you glance at this text, it looks like any paragraph. When you start to read it, you
notice that the words are Latin. It’s not distracting because it has the variety of words, characters, and
punctuation that any paragraph has. But it’s not content, so it also does not distract a client or designer
with a readable message. Many Web sites generate lorem ipsum text, and some word-processing
applications and Web design tools do as well. You can use as much of the text as you need, with short
snippets for links and longer paragraphs for blocks of content. After the layout design is complete, you
substitute the real content in place of the lorem ipsum text.
The use of lorem ipsum text did not begin with Web design. This technique has a long history that
goes back to typesetting in the 1500s. The standard lorem ipsum text is a long quote from The
Extremes of Good and Evil, written by Cicero in 45 BCE. Today there are many forms of the lorem
ipsum text widely used as placeholder text.
3. Briefly describe some common CSS style tools that developers have handy so that they do not need to
recreate the same CSS for each Web site they build.
ANS:
Reset sheet—Because browsers handle default margins, padding, and fonts differently, a reset CSS
style sheet that specifically resets individual settings helps developers to start with a clean slate.
Templates—Web developers have a collection of various templates, with CSS, for common layouts
such as two-column and three-column designs.
Browser-specific CSS—Because browsers handle advanced CSS techniques differently, Web
developers will have a collection of CSS code that handles specific style properties for specific Web
browsers or versions of Web browsers.