Deck 6: Page Layout

Full screen (f)
exit full mode
Question
_________ flow displays the elements on the page in the order they appear in the web page source code.

A) default
B) source code
C) browser
D) normal
Use Space or
up arrow
down arrow
to flip the card.
Question
The _______ is the area between the content and the border.

A) border
B) spacing
C) padding
D) none of the above
Question
Select the example below that could be used to clear a right float.

A) clear: right;
B) clear: left;
C) right: clear;
D) overflow: right;
Question
From the choices below select the correct order to code CSS pseudo-classes.

A) link, hover, visited, active
B) hover, link, active, visited
C) link, visited, hover, active
D) link, hover, active, visited
Question
The default value for the border property for an element is:

A) 1 pixel
B) 0 pixels
C) 3 pixels
D) 10 pixels
Question
If an element is configured with ___________ the other content on the page will appear to its left.

A) position:left;
B) position:relative;
C) float:left;
D) float:right;
Question
When configuring the background color of an element, the background color is applied to both the content and ______ areas.

A) border
B) padding
C) margin
D) extra
Question
Use the ________ property along with the left, right and/or top property to precisely configure the position of an element.

A) position:absolute;
B) position:relative;
C) position:float;
D) absolute:position;
Question
The CSS to create the class called myfloat that floats to the right of the other page content, has a 10px margin, and a solid border is:

A) .myfloat { float:right; margin:10px; border: 1px solid #000000; }
B) #myfloat { right:float: margin 10px; border: 1px solid #000000; }
C) .myfloat { float:right; 10px:margin; border: 1px solid #000000; }
D) .myfloat { float:right; margin:10px; border: on; }
Question
Use the ________ or _______ property to clear a float.

A) float or clear
B) clear or overflow
C) position or clear
D) overflow or float
Question
The box model consists of a content area surrounded by:

A) a border
B) padding, border, and margin
C) border and margin
D) spacing, border, and margin
Question
Select the example below that configures a container to clear all floated elements that are within the container.

A) clear: both;
B) overflow: all;
C) overflow: auto;
D) clear: all;
Question
Which of the following configures a margin for an element with the following values: top margin 30 pixels, left margin 150 pixels, right margin 0 pixels, and bottom margin 0 pixels?

A) margin: 150px 20px 0 300px;
B) margin:top-30, left-150, right-0, bottom-0;
C) margin:30px 0 0 150px;
D) none of the above
Question
Use ___________ positioning to slightly change the location of an element in relation to where it would otherwise appear when rendered by a browser.

A) absolute
B) float
C) relative
D) display
Question
Use the _______________ property to configure an image to use as a bullet point in an unordered list.

A) bullet-image
B) image-style
C) list-style-image
D) bullet-style-image
Question
When using the box model, the _____ is always transparent.

A) border
B) content
C) spacing
D) margin
Question
Choose the example below of a descendent selector that configures the anchor tags with the nav element.

A) nav a
B).navigation a
C) #nav a
D) a nav
Question
To apply a style to one or more elements on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) None of the above
Question
Use an id to configure a style when:

A) the style could apply to more than one element on a page.
B) the style will apply to only one element on a page.
C) the style is used for all elements on a page.
D) None of the above
Question
Choose the example below that configures a comment in CSS.

A) < ! comment ! >
B) // comment //
C) /* comment */
D) < < comment > >
Question
The _______ pseudo-class configures the styles that will apply when the mouse is on a hyperlink.

A) hover
B) click
C) active
D) over
Question
Choose the example below of a descendant selector that configures the anchor tags within the element assigned to an id named special.

A) #special a
B) .special a
C) a#special
D) special#a
Question
Use ___________ positioning to configure the location of an element to remain the same and to not move even when the web page is scrolled within the browser viewport.

A) absolute
B) static
C) relative
D) fixed
Question
Choose the HTML5 element below that is used to configure an area on a web page that can stand on its own and could potentially be syndicated.

A) div
B) section
C) article
D) aside
Question
The _____ pseudo-class configures the appearance of the hyperlink before it is clicked.

A) hover
B) link
C) hyperlink
D) active
Question
The ________ HTML5 element is used to contain tangential or supplemental content.

A) header
B) main
C) aside
D) section
Question
Choose the item below that is not an HTML5 element.

A) footer
B) figcaption
C) wrapper
D) article
Question
Set list-style-type to the value ___________ to hide the display of the list markers on an ordered list.

A) none
B) hide
C) invisible
D) nodisplay
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/28
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Page Layout
1
_________ flow displays the elements on the page in the order they appear in the web page source code.

A) default
B) source code
C) browser
D) normal
D
2
The _______ is the area between the content and the border.

A) border
B) spacing
C) padding
D) none of the above
C
3
Select the example below that could be used to clear a right float.

A) clear: right;
B) clear: left;
C) right: clear;
D) overflow: right;
A
4
From the choices below select the correct order to code CSS pseudo-classes.

A) link, hover, visited, active
B) hover, link, active, visited
C) link, visited, hover, active
D) link, hover, active, visited
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
5
The default value for the border property for an element is:

A) 1 pixel
B) 0 pixels
C) 3 pixels
D) 10 pixels
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
6
If an element is configured with ___________ the other content on the page will appear to its left.

A) position:left;
B) position:relative;
C) float:left;
D) float:right;
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
7
When configuring the background color of an element, the background color is applied to both the content and ______ areas.

A) border
B) padding
C) margin
D) extra
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
8
Use the ________ property along with the left, right and/or top property to precisely configure the position of an element.

A) position:absolute;
B) position:relative;
C) position:float;
D) absolute:position;
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
9
The CSS to create the class called myfloat that floats to the right of the other page content, has a 10px margin, and a solid border is:

A) .myfloat { float:right; margin:10px; border: 1px solid #000000; }
B) #myfloat { right:float: margin 10px; border: 1px solid #000000; }
C) .myfloat { float:right; 10px:margin; border: 1px solid #000000; }
D) .myfloat { float:right; margin:10px; border: on; }
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
10
Use the ________ or _______ property to clear a float.

A) float or clear
B) clear or overflow
C) position or clear
D) overflow or float
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
11
The box model consists of a content area surrounded by:

A) a border
B) padding, border, and margin
C) border and margin
D) spacing, border, and margin
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
12
Select the example below that configures a container to clear all floated elements that are within the container.

A) clear: both;
B) overflow: all;
C) overflow: auto;
D) clear: all;
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following configures a margin for an element with the following values: top margin 30 pixels, left margin 150 pixels, right margin 0 pixels, and bottom margin 0 pixels?

A) margin: 150px 20px 0 300px;
B) margin:top-30, left-150, right-0, bottom-0;
C) margin:30px 0 0 150px;
D) none of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
14
Use ___________ positioning to slightly change the location of an element in relation to where it would otherwise appear when rendered by a browser.

A) absolute
B) float
C) relative
D) display
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
15
Use the _______________ property to configure an image to use as a bullet point in an unordered list.

A) bullet-image
B) image-style
C) list-style-image
D) bullet-style-image
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
16
When using the box model, the _____ is always transparent.

A) border
B) content
C) spacing
D) margin
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
17
Choose the example below of a descendent selector that configures the anchor tags with the nav element.

A) nav a
B).navigation a
C) #nav a
D) a nav
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
18
To apply a style to one or more elements on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) None of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
19
Use an id to configure a style when:

A) the style could apply to more than one element on a page.
B) the style will apply to only one element on a page.
C) the style is used for all elements on a page.
D) None of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
20
Choose the example below that configures a comment in CSS.

A) < ! comment ! >
B) // comment //
C) /* comment */
D) < < comment > >
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
21
The _______ pseudo-class configures the styles that will apply when the mouse is on a hyperlink.

A) hover
B) click
C) active
D) over
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
22
Choose the example below of a descendant selector that configures the anchor tags within the element assigned to an id named special.

A) #special a
B) .special a
C) a#special
D) special#a
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
23
Use ___________ positioning to configure the location of an element to remain the same and to not move even when the web page is scrolled within the browser viewport.

A) absolute
B) static
C) relative
D) fixed
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
24
Choose the HTML5 element below that is used to configure an area on a web page that can stand on its own and could potentially be syndicated.

A) div
B) section
C) article
D) aside
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
25
The _____ pseudo-class configures the appearance of the hyperlink before it is clicked.

A) hover
B) link
C) hyperlink
D) active
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
26
The ________ HTML5 element is used to contain tangential or supplemental content.

A) header
B) main
C) aside
D) section
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
27
Choose the item below that is not an HTML5 element.

A) footer
B) figcaption
C) wrapper
D) article
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
28
Set list-style-type to the value ___________ to hide the display of the list markers on an ordered list.

A) none
B) hide
C) invisible
D) nodisplay
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 28 flashcards in this deck.