Test2-4, 6, 7, 8 Flashcards
Select the item below that lists elements used in an HTML table:
a) table, tr, tt
b) table, head, tfoot
c) table, tr, td
d) thread, body, tr
c) table, tr, td
Use the ______ tag pair to begin and end a table row.
a)
b)
c)
d) none of the above
b)
The _____ pseudo-class configures the styles that will apply when the mouse is on a hyperlink.
a) hover
b) click
c) active
d) over
a) hover
Which of the following CSS3 properties configure the alignment of text within a table?
a) caption
b) text-align
c) border-spacing
d) align
b) text-align
Which of the following CSS3 pseudo-elements could be used to apply styles to the last row of a table?
a) :last-row
b) this cannot be done with CSS
c) :tfoot
d) :last-of-type
d) :last-of-type
The default value for the border property for an element is:
a) 3px
b) 0px
c) 10px
d) 1 px
b) 0px
_____ will cause an object not to display.
a) display: hide;
b) display: block;
c) display: 0px;
d) display: none;
d) display: none;
WHich of the following CSS3 pseudo-elements will be useful when configuring every other row of a table?
a) :every-other-type
b) this cannot be done with css
c) :last-of-type
d) :nth-of-type(n)
d) :nth-of-type
Set list-style-type to the value ______ to hide the display of the list markers on an ordered list.
a) nodisplay
b) hide
c) invisible
d) none
d) none
The ____ HTML5 element is used to configure the top logo area on a web page.
a) navigation
b) head
c) header
d) nav
c) header
Use the ____ attribute on a element to associate it with a table heading cell.
a) heading
b) title
c) headers
d) th
c) headers
Use the _____ tag pair to configure table headings.
a)
b)
c)
d) none of these
b)
Which pseudo-element can be used to generate content that precedes an element?
a) :content
b) :before
c) :after
d) :first-line
b) :before
Use the \_\_\_\_\_ tag pair to configure a table footer row group. a) b) c) d)
b)
______ flow displays the elements on the page in the order they appear in the web page source code.
a) browser
b) source code
c) default
d) normal
d) normal
A table with a width set to 600 pixels will look ______ on a monitor with resolution set to 640X480 than on a monitor with resolution set to 1024 x 768.
a) the same
b) more distorted
c) larger
d) smaller
c) larger
Which of the following CSS3 properties position the caption of a table?
a) summary
b) caption
c) caption-side
d) thread
b) caption
Choose the example below of a descendent of a descendent selector that configures the anchor tags with a div assigned to the navigation id.
a) navigation#div a
b) a#navigation div
c) div.navigation a
d) div#navigation a
)
The _______ is the area between the content and the border.
a) border
b) spacing
c) padding
d) none of these
c) padding
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 these
)
Choose the item below that is not an HTML5 element.
a) footer
b) wrapper
c) figcaption
d) article
b) wrapper
An HTML table is comprised of ____ and ______.
a) lines and text
b) headers and body
c) rows and columns
d) none of these
c) rows and columns
Is the following HTML code valid?
a) No, there is no border attribute
b) No, the same value cannot be provided for both cellspacing and cellpadding
c) Yes
d) No, table width cannot be set to a percentage value
c) Yes
Use the ____ property in the HTML link tag to associate a web page with a style sheet for printing
a) media=”screen”
b) media=”paper”
c) out=”printer”
d) media=”print”
d) media=”print”
The ____ meta tag configures scale and dimension on mobile web page display.
viewport
How would you define a fragment identifier at the top of a page, called “top”?
<div>
</div>
From the choices below, select the correct order to code CSS pseudo-classes.
a) hover, link, active, visited
b) link, hover, visited, active
c) link, hover, active, visited
d) link, visited, hover active
d) link, visited, hover, active
Use the _____ property to configure an image to use as a bullet point in an unordered list.
a) image-style
b) bullet-style-image
c) bullet-image
d) list-style-image
d) list-style-image
The _____ HTML5 element is used to configure the main navigation area on a web page
a) nav
b) command
c) navigation
d) header
a) nav
The css vertical-align property can be used to configure the vertical alignment of the contents of a table cell.
TRUE or FALSE?
true
A ______ determines the capability of the mobile device, such as screen resolution, and directs browsers to CSS
a) viewport
b) media query
c) fragment identifier
d) sprite
b) media query
Use the ____ or _____ property to clear a float.
a) float or clear
b) overflow or float
c) position or clear
d) clear or overflow
d) clear or overflow
When do you need to use a fully qualified URL in a hyperlink?
when linking to a page on an external web site
It is possible to use CSS to configure page breaks in a printed web page.
TRUE or FALSE?
true
Which of the following configures a margin for an element with the following values: all margins–> top 30px, left 150px, right 0, bottom 0?
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 these
c) 30px 0 0 150px
Use the headers attribute on the ____ tag to correspond to the id attribute on a ___ tag.
a) or
b)
c) or
d) or <thead
b)
To configure the table cells to share a common border and eliminate the default space between table cells configure_____.
a) border-collapse: collaps;
b) border-collaps: all;
c) border: none;
d) border: collapse;
a) border-collapse: collapse;
A benefit of using the CSS Sprites technique to to decrease the number of HTTP request calls to the web server.
TRUE or FALSE?
True
The _____ attribute of the anchor tag can cause the new web page to open in its own browser window.
a) id
b) href
c) target
d) window
c) target
Select the example below that configures a container to clear all floated elements that are within the container.
a) overflow: all;
b) overflow: auto;
c) clear: both;
d) clear: all;
c) overflow: auto;
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 these
b) the style will apply to only one element on a page
To define the distance between the cell text and the cell border in a table, use the ______ attribute.
a) cellpadding
b) cellspacing
c) cellborder
d) cellpad
a) cellpadding
What is the purpose of the : content pseudo-elemnet?
a) to configure mobile display only
b) to display a pop-up window
c) to configure the text size of the entire web page document
d) to generate content that is added to the web page document
d) to generate content that is added to the web page document
____ will configure a class called blog to stack on top of other elements that have a z-index of 3?
a) #blog(z-index:high);
b) .blog (z-index:4);
c) .blog (z-index:2);
d) none of these
b) .blog (z-index:4);