1)
A layout that does not appear on the screen as planned is called ____.
(1pts)
failed layout
broken layout
fluid layout
column drop
2)
In the box model the border is placed between the margin and the padding.
(1pts)
True False
3)
XHTML comments can be used as comments for an external style sheet.
(1pts)
True False
4)
With the overflow property, the ____ value allows the box to expand as much as possible.
(1pts)
auto
hidden
scroll
visible
5)
The top property with a negative value positions an element ________.
(1pts)
below the normal position
does not have any effect
negative values are invalid
above the normal position
6)
In which part of XHTML code does the link to the external style sheet need to be included?
(1pts)
between the body tags
anywhere in the code
between the head tags
right after the opening html tag
7)
#banner { width: 775px; height: 100px; margin-top: 0; margin-bottom: 10px; text-align: center; font-weight: bold; font-size: 24pt; font-family: 'lucida sans unicode', sans-serif; background-image: url(flag.gif); background-repeat: repeat-x; color: navy; background-color: white; border: navy solid thick; }
In the accompanying figure, the image is set to repeat vertically.
(1pts)
True False
8)
Two commonly used classification properties are the float and clear properties.
(1pts)
True False
9)
In XHTML, an image or text elements are treated as a ____.
(1pts)
table cell
window
rectangle
box
10)
To limit a style sheet’s use to a browser, use the value of ____.
(1pts)
screen
output
print
browser
11)
Column droop occurs when ____.
(1pts)
the bottom margin of a div competes for the same space as the bottom margin of another block-level element
the bottom margin of a div competes for the same space as the top margin of another block-level element
the top margin of a div competes for the same space as the bottom margin of another block-level element
all of the above
both a and c
both b and c
both a and b
12)
Define how the image flower.gif will be positioned if the following background shorthand property will be applied? background: url(flower.gif) 1% 50% no-repeat navy;
(1pts)
1% from the right edge of the div and 50% up from the bottom of the div
1% from the right edge of the div and 50% down from the top of the div
1% from the left edge of the div and 50% up from the bottom of the div
1% from the left edge of the div and 50% down from the top of the div
13)
When using a border shorthand property, the values of style, width, and color should be separated by a ______.
(1pts)
space
comma
separator not needed
semicolor
14)
#navbar ul li { margin-right: 1em; background: url(button.gif) no-repeat center center; display: inline; list-style-type: none; } In the above code, what is the purpose of the list-style-type property?
(1pts)
To show default list item markers in the navigation bar
To remove all list items
To remove any list item markers from the navigation bar
To clean up the navigation bar
15)
Within a <____> tag, you indicate the number of columns to merge.
(1pts)
tc
td
tr
16)
If you want to always have a particular element displayed on the bottom of a stack, assign the z-index value to be ____.
(1pts)
0
1
50
100
17)
If four values are listed for margin properties, they are applied in _______ order.
(1pts)
right, top, left, bottom
top, left, bottom, right
left, top, right, bottom
top, right, bottom, left
18)
It is recommended that the clear property value for the footer have a value of _______.
(1pts)
right
default
left
both
19)
Which of the following properties is a shorthand border-style property?
(1pts)
border-style
border-top-style
border-right-style
border-shorthand
20)
When an element is displayed in the exact specified position a(n) _______ positioning is used
(1pts)
default
absolute
relative
center
21)
Repeating an image is also known as ____ an image.
(1pts)
kerning
keying
tiling
centering
22)
The hybrid layout is a combination of __________ layouts.
(1pts)
elastic and liquid
liquid and fixed-width
elastic and fixed-width
none of the above
23)
In the fixed-width layout the page and columns ________.
(1pts)
are set to a certain width using the percentage values
expands and contracts to fill the entire screen
are set to a certain width using pixel values
24)
What does the following code do? #left p, #middle p {margin-bottom: 1em; text-indent: 2em;}
(1pts)
styles both left and middle columns text
styles left column only
styles middle column text only
is syntactically incorrect
25)
#navbar ul li { margin-right: 1em; background: url(button.gif) no-repeat center center; display: inline; list-style-type: none; }
In the above code, what is the purpose of the property value 'center center'?
(1pts)
To center the button.gif background image horizontally
To center the button.gif text vertically and horizontally
To center the button.gif background image vertically
To center the button.gif background image vertically and horizontally
26)
The ____ property with a positive value will move an element up.
(1pts)
left
top
bottom
right
27)
An external style sheet file extension is __________.
(1pts)
.css
.php
.exe
.jpg
28)
The output attribute determines to which device the output will be directed.
(1pts)
True False
29)
A(n) ____ table is used to align text and numbers in columns and rows.
(1pts)
format
layout
alignment
data
30)
Table column headers by default make the text in the header ____.
(1pts)
left-align
justified
right-aligned
centered
31)
What is wrong with the following external style sheet file?
(1pts)
the generic font-family should be serif
style tags should be removed
nothing is wrong
background-color values cannot contain numbers with letters
32)
In a liquid layout, the column widths are determined using _______ values.
(1pts)
resolution
percentage
pixel
em
33)
To make sure a Web page prints correctly, you need to create a print ____.
(1pts)
grid
style
layout
medium
34)
The order of the content in the document flow is defined by _______.
(1pts)
container order
stack
element order
source order
35)
#banner { width: 775px; height: 100px; margin-top: 0; margin-bottom: 10px; text-align: center; font-weight: bold; font-size: 24pt; font-family: 'lucida sans unicode', sans-serif; background-image: url(flag.gif); background-repeat: repeat-x; color: navy; background-color: white; border: navy solid thick; }
In the accompanying figure, the banner is set to be 10px wide.
(1pts)
True False
36)
#banner { width: 775px; height: 100px; margin-top: 0; margin-bottom: 10px; text-align: center; font-weight: bold; font-size: 24pt; font-family: 'lucida sans unicode', sans-serif; background-image: url(flag.gif); background-repeat: repeat-x; color: navy; background-color: white; border: navy solid thick; }
In the above code, the banner selector is set to be ____ high.
(1pts)
100px
775px
24pt
10px
37)
The following style: margin: 10px 4px; sets top and bottom margins equally to 10px, and left and right margins equally to 4px.
(1pts)
True False
38)
The table header tags are <____> and <_____>.
(1pts)
th and /th
ht and /ht
tr and /tr
h and /h
39)
The ____ property can be used to set a fixed or scrolling background image.
(1pts)
background-repeat
background-attachment
background-image
background-position
40)
The following style is valid: img {float: left margin: 0 10px 10px 0; }
(1pts)
True False
41)
Which of the following is an example of the padding shorthand property?
(1pts)
padding-top: 10px;
padding-short: 5px;
padding-left: 10px;
padding: 5px;
42)
The ____ attribute is used to merge cells in rows.
(1pts)
colspan
rowspan
spanrow
merge
43)
In a web page design, the ____ is a row at the bottom of the page.
(1pts)
header
main
sidebar
footer
44)
Most people agree that ____ fonts, such as Times New Roman, are easiest to read on the printed page.
(1pts)
monotype
sans-serif
serif
cursive
45)
Use a(n) ____ box when you need to position more than one floating element.
(1pts)
integrated
container
index
background
46)
To import one style sheet into another one the _____ rule needs to be used.
(1pts)
imp
@import
@imp
import
47)
No matter how you revise a page to add or delete text or images, a(n) ____ positioned element remains in the same position.
(1pts)
dynamically
absolutely
baseline
relatively
48)
If a page contains two sidebar columns, and a main column between them, then the columns that should float are(is) _________.
(1pts)
only the right sidebar column
only the main column
both the left and the right sidebar columns
only the left sidebar column
49)
An external style sheet has higher priority than an embedded style sheet.
(1pts)
True False
50)
An id selector can be used to select _____ on the same page.
(1pts)
as many elements as needed
not more than two elements
only one instance of a particular element
several elements as class selectors
51)
#navbar li a { padding: 1em; color: white; text-decoration: none; }
What is the purpose of the above code?
(1pts)
To style all anchor elements on the page
To style all list items on the page
To style list items containing an anchor element for navbar
52)
The data for each cell is entered between the <____> and <_____> tags.
(1pts)
td and /td
th and /th
tc and /tc
tr and /tr
53)
To set the style for table data cells to always show a ____ even if the cell has no content, you set the style for the td element selector similar to this: td {empty-cells: show; }.
(1pts)
script
comment
border
tag
54)
What is the main advantage of using the CSS border property instead of the XHTML horizontal rule element?
(1pts)
there are no advantages
it is more convenient
it allows you to create vertical ruled lines
it allows you to create horizontal ruled lines
55)
With the overflow property, the ____ value does not display overflow text.
(1pts)
auto
scroll
visible
hidden
56)
In page design, the ____ is a narrow vertical column commonly used for secondary links.
(1pts)
main
sidebar
banner
footer
57)
The sidebar placed to the left of the main column can be floated _________.
(1pts)
left and right
right
left or right
left
58)
When defining the size of the printed page _______ are used as unit measurements.
(1pts)
pixels
em values
percentages
inches
59)
What is the main purpose for zeroing out padding and margins for all elements on the Web page?
(1pts)
Not only padding and margins but also the borders should be zeroed out
It should not be applied to all elements
The layout becomes more consistent when the page is viewed on different browsers
It is not a good practice
60)
What is the correct order of the properties and their values for the background property?
(1pts)
background-image, background-repeat, background-color
background-position, background-repeat, background-image
background-image, background-repeat, background-attachment
background-image, background-attachment, background-position
61)
You cannot use negative numbers as values for the top and left properties.
(1pts)
True False
62)
If the sidebar column is assigned the width of 20%, and the main column is not assigned a width, then the main column will occupy 80% of the screen width.
(1pts)
True False
63)
The page footer is primarily used for _________.
(1pts)
links to other Web sites
a page banner
address and contact information
links to other pages on the Web site
64)
Use the align attribute with a value of ____ to position the caption below the table.
(1pts)
no value is available
bottom
top
65)
With the overflow property, the ____ value displays scroll bars only if necessary.
(1pts)
auto
hidden
scroll
visible
66)
When each row in a table alternates its background color, the effect is called row ____.
(1pts)
phasing
striping
recoloring
selecting
67)
Fluid layouts are also called flexible layouts.
(1pts)
True False
68)
In a web design, the ____ document window is the largest window.
(1pts)
sidebar
main
banner
footer
69)
The power of a CSS external style sheet is in _________.
(1pts)
its ability to determine the appearance of many documents
its simplicity
its portability
all of the above
70)
If you add or delete text or images, the position of a(n) ____ positioned element changes.
(1pts)
relatively
dynamically
absolutely
baseline
71)
The box model is a part of ____.
(1pts)
HTML
css
XHTML
Windows
72)
Table borders are often referred to as the table ____.
(1pts)
gridlines
pixels
bindings
alignments
73)
A(n) ____ is used to add a table title or heading.
(1pts)
index
title
caption
glossary
74)
The span element is a(n) ________ element.
(1pts)
block-level
grouped
inline
75)
The ________ selector is used to select all of the elements on the Web page.
(1pts)
universal
id
class
element
76)
If padding of 2% is used for both columns of the layout then the total of your column widths in percentages should be less than ________.
(1pts)
92%
96%
98%
100%
77)
Which of the following needs first to be decided when creating a two-column liquid layout?
(1pts)
where the sidebar column will appear (to the left or to the right)
the width of the main column
the height of the sidebar column
the width of the narrower of the two columns
78)
Which of the following border style value is the default?
(1pts)
inset
none
solid
groove
79)
The CSS ____ property applies background color to tables, rows, and cells.
(1pts)
bordercolor
tablecolor
bgcolor
background-color
80)
A ____ is the intersection of a column and row.
(1pts)
cell
page
control
grid
81)
The value of the background-image property begins with ______.
(1pts)
image file name
http
url
img
82)
Include the ____ attribute and its value so that a ScreenTip appears when a user points to the table in a browser.
(1pts)
summary
view
title
report
83)
With the media attribute, the ____ value is designed to format your page to print appropriately.
(1pts)
print
output
paper
printer
84)
The ________ property is used to position boxes on the page and to wrap content around the box.
(1pts)
float
classification
clear
border
85)
HTML uses the ____ attribute to merge cells across columns.
(1pts)
across
rowspan
span
colspan
86)
If you are using more than one style sheet, make sure the style sheet with the media=”screen” comes last.
(1pts)
True False
87)
The universal selector starts with __________.
(1pts)
&
*
#
@
88)
Padding values for the liquid layout should be expressed in _________.
(1pts)
ems
pixels
percentages
all of the above
89)
With the border-width property, when three values are listed, the third value is applied to the ______.
(1pts)
top
right
bottom
left
90)
Which of the following is the correct syntax for setting the padding property?
(1pts)
padding-top: 2px
padding-left: 3em;
right-padding: 5mm;
bottom-padding: 4in.
91)
The margin is used to create ____.
(1pts)
a white space around the box
a white space that surrounds content
a white space around the border
a white space around the screen
92)
By default, a table does not show the gridlines.
(1pts)
True False
93)
If you want to always have a particular element displayed on top of a stack, assign the z-index value to be ____.
(1pts)
0
1
-1
100
94)
What is the default font size for the printed page?
(1pts)
10pt
11pt
12pt
14pt
95)
Which of the following options describes the portrait page orientation?
(1pts)
Page width is equal to its height
Page height is smaller than its width
Computer screen resolution
Page width is smaller than its height
96)
By default, most browsers print background images.
(1pts)
True False
97)
If the width of the container div is set to 900 pixels, which of the following breaks the layout?
(1pts)
sidebar div has a width of 150 pixels and main column has a width of 760 pixels
sidebar div has a width of 200 pixels and main column has a width of 700 pixels
footer div has a width of 900 pixels
header div has a width of 820 pixels
98)
Printed copy is usually one column of black text on a white background and in a serif font.
(1pts)
True False
99)
With the overflow property, the ____ value displays scroll bars so users can scroll through the box when more text is entered into the box than can be displayed.
(1pts)
hidden
auto
visible
scroll
100)
To reposition an element below another element of a page a _______ property is used.
(1pts)
none
center
float
clear