IT 1230 Practice Test 2, chapter 6-9
Choose the example below of a descendant selector that configures the anchor tags within the element assigned to the content id. a. #content a b. .content a c. a#content d. content#a
a. #content a
Choose the recommended use of tables on web pages. Question options: X a. Use tables to format the layout of an entire page X b. Use tables to organize tabular information c. Use tables to format hyperlinks d. Use tables instead of unordered lists
b. Use tables to organize tabular information
Use the ________________ property to configure rounded corners with CSS. Question options X a. :border-round X b. border-radius c. box-shadow X d. background-corner X
b. border-radius
Which of the following configures a 1 pixel, solid black border for an element? Question options: X a. border-all: #000000; X b. border: 1px solid #000000; c. border-style: 1px solid #000000; d. border-top: 1px solid #000000;
b. border: 1px solid #000000;
The purpose of the _______ element is to describe the contents of a table. Question options: X a. summary X b. caption c. title d. border
b. caption
Use the ________ or _______ property to clear a float. Question options: X a. float or clear X b. clear or overflow X c. position or clear X d. overflow or float
b. clear or overflow
Use the ______ attribute on a td element to associate it with a table heading cell. Question options: X a. th X b. headers X c. heading X d. title
b. headers
Use the th element to indicate a table column or row _____. Question options: X a. data X b. heading c. summary d. caption
b. heading
Use the ______ value for the CSS display property to configure an element to not display. X a. block X b. none c. 0 X d. hide X
b. none
When configuring the background color of an element, the background color is applied to both the content and ______ areas. Question options: X a. border X b. padding c. margin d. extra
b. padding
The ________ HTML5 element indicates a portion of a document, like a chapter or specific topic. X a. header X b. article c. aside d. section
d. section
Use the ______ element to contain an HTML table. Question options: X a. th X b. td c. tr d. table
d. table
Use the ________ element to configure a table footer row group. Question options: X a. thead X b. tgroup c. tbody d. tfoot
d. tfoot
Which of the following is NOT a valid value for the border-style property? Question options: X a. dashed X X b. groove X c. solid d. triple
d. triple
____ A radial gradient is a smooth blending of color emanating outward from a single point. Question options: True False
True
_____ The CSS border-spacing property can be used to configure the horizontal and vertical spacing of table borders. Question options: True False
True
_____ The CSS vertical-align property can be used to configure the vertical alignment of the contents of a table cell. Question options: True False
True
___ The border-top used to configure only one side of an element Question options: True False
True
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: Question options: 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; }
a. .myfloat { float:right; margin:10px; border: 1px solid #000000; }
The _______ pseudo-class configures the styles that will apply when the mouse is placed over a hyperlink. a. :hover b. :click c. :active d. :over
a. :hover
Which of the following CSS3 pseudo-elements could be used to apply styles to the last row of a table? Question options: a. :last-of-type b. :last-row c. : tfoot d. This cannot be done with CSS.
a. :last-of-type
How would you link to the named fragment #school on the page resume.html from the home page of the site? a. <a href="resume.html#school">Educational Background</a> b. <a name="resume.html#school"> Educational Background </a> c. <a link="resume.htmlschool"> Educational Background </a> d. <a link="resume.html#school"> Educational Background </a>
a. <a href="resume.html#school">Educational Background</a>
How would you define a fragment identifier at the top of a page, called "top"? a. <div id="top"> b. <div bookmark="top"> c. <div id="#top"> d. <div href="top">
a. <div id="top">
Use ____________ positioning to precisely configure the location of an element outside of normal flow. a. absolute b. static c. relative d. fixed
a. absolute
The _______ is between the padding and the margin. Question options: a. border b. spacing c. padding d. content
a. border
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. clear: right;
Which attribute below defines a fragment identifier in a page? a. id b. identifier c. fragment d. bookmark
a. id
Use the _______ property to configure a smooth blending of color in a single direction. Question options: a. linear-gradient b. background-color c. background-image d. opacity
a. linear-gradient
Which of the following, from outermost to innermost, are components of the box model? Question options: a. margin, border, padding, content b. content, padding, border, margin c. content, margin, padding, border d. margin, padding, border, content
a. margin, border, padding, content
Which of the following is used along with the width property to configure centered page content? Question options: a. margin-left: auto; margin-right: auto b. margin: top-10, left-0, right-0, bottom-10; c. margin: 15px 0 5px 0; d. margin: 20px;
a. margin-left: auto; margin-right: auto
The CSS3 _______ property configures the transparency of an element. Question options: a. opacity b. transparency c. background-opacity d. opacity-background
a. opacity
Use the CSS ______ property to configure the cellpadding of a table. Question options: a. padding b. margin c. cell padding d. border-spacing
a. padding
Use the ________ property along with the left, right and/or top property to precisely configure the position of an element. Question options: a. position: absolute; b. position: relative; c. position: float; d. absolute: position;
a. position: absolute;
Use the ________ element to configure a table head row group. Question options: a. thead b. tgroup c. tbody d. tfoot
a. thead
The default value for the border property for an element is: Question options: X a. 1 pixel X b. 0 pixels c. 3 pixels d. 10 pixels
b. 0 pixels
The _______ pseudo-class configures the styles that will apply for a hyperlink that has not been visited by the user. X a. :unvisited X b. :link c. :visited X d. :new X
b. :link
Which of the following CSS3 pseudo-elements will be useful when configuring every other row of a table? Question options: X a. :last-of-type X b. :nth-of-type(even) c. :every-other-type d. This cannot be done with CSS.
b. :nth-of-type(even)
How would you configure a hyperlink from the index.html file to another file named services.html which is located in a subfolder named categories? a. <a href="../categories/services.html">Services</a> b. <a href="categories/services.html">Services</a> c. <a href="services.html">Services</a> d. <a>Services</a>
b. <a href="categories/services.html">Services</a>
How would you configure a hyperlink from the index.html file to another file named services.html which is located in the same folder? a. <a target="services.html">Services</a> b. <a href="services.html"> Services </a> c. <a name="services.html"> Services </a> d. <a> Services </a>
b. <a href="services.html"> Services </a>
Which of the following configures padding for an element with the following values: top padding 0 pixels, left padding 10 pixels, right padding 10 pixels, bottom padding 20px? Question options: X a. padding: 0px 10px 20px 10px; b. padding: 0 10px 20px 10px; c. padding: 10xp 20px; X d. padding: 20px 10px 10px 0px; X
b. padding: 0 10px 20px 10px;
What is the term used to describe image file that contains multiple small graphics? Question options: X a. thumbnail image X b. sprite c. image link X d. viewport X
b. sprite
Use the ______ element to contain a table data cell. Question options: X a. th X b. td c. tr d. table
b. td
Use the headers attribute on the ___ element to correspond to the id attribute on a ___ element. Question options: X a. tbody, table X b. td, th c. td, tr d. td, table
b. td, th
Use the ____ element to configure a table heading cell. Question options: X a. td X b. th X c. head X d. tr
b. th
Use the _____ element to contain a table row. Question options: X a. td X b. tr c. table d. row
b. tr
The _______ pseudo-class configures the styles that will apply when a hyperlink is clicked, X a. :hover X X b. :click X c. :active d. :over
c. :active
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. X a. div X b. section c. article d. aside
c. article
The ________ HTML5 element indicates tangential or supplemental content. a. header b. nav c. aside d. section
c. aside
Use the ______ attribute to configure the browser to render default table and table cell borders. Question options: X a. table border X b. width c. border d. border-spacing
c. border
To eliminate the space between table cells, use the ___________ property. Question options: X a. border: none; X b. border-style: 0; c. border-spacing: 0; X d. cellspacing: 0; X
c. border-spacing: 0;
_________________ will cause an object not to display. X a. display: block; X b. display: 0px; c. display: none; d. display: fixed;
c. display: none;
Which value for the display property is useful when configuring horizontal navigation within an unordered list? X a. none X X b. block X c. inline d. fixed
c. inline
From the choices below select the correct order to code CSS pseudo-classes. X a. link, focus, hover, visited, active X b. focus; hover, link, active, visited c. link, visited, focus, hover, active X d. link, hover, active, visited, focus X
c. link, visited, focus, hover, active
Use the _______________ property to eliminate the bullets from an unordered list. X a. bullet-image X X b. list-style-none X c. list-style-type d. list-style-image
c. list-style-type
Use the __________ property to configure a maximum width for an element Question options X a. :width X b. maximum-width c. max-width X d. width-max X
c. max-width
Use the __________ property to configure a minimum width for an element Question options: X a. width X b. minimum-width c. min-width d. m-width
c. min-width
The _______ is the area between the content and the border. Question options: X a. border X b. spacing c. padding d. margin
c. padding
Use ___________ positioning to slightly change the location of an element in relation to where it would otherwise appear when rendered by a browser. X a. absolute X b. static c. relative d. fixed
c. relative
An HTML table is comprised of ____ and ______. Question options: X a. lines and text X X b. headers and body X c. rows and columns d. none of the above
c. rows and columns
Which of the following CSS3 properties configure the alignment of text within a table? Question options: X a. align X b. caption c. text-align d. border-spacing
c. text-align
Select the property that is useful to remove the underline from a hyperlink. Question options: X a. font-style X b. underline c. text-decoration d. u
c. text-decoration
The ___________________ property configures a shadow effect on the text displayed within an element. Question options: X a. box-shadow X b. linear-gradient c. text-shadow d. shadow
c. text-shadow
Choose the item below that is not an HTML5 element. X a. footer X b. figcaption c. wrapper d. article
c. wrapper
Is the following HTML code valid? <table> <tr> <td>cell 1</td> <td>cell 2 </tr> </table> Question options: X a. Yes. X b. No, you cannot code two td elements within the same row X c. No, you cannot code a table with only one row X d. No, there is a missing closing td tag
d. No, there is a missing closing td tag
Use the ___________________ property to resize or scale the background image. Question options: X a. background-image X b. background-clip c. background-origin d. background-size
d. background-size
The CSS opacity property configures the display of _____________ Question options: X a. only the background X b. only the text b. neither the text or the background d. both the text and the background
d. both the text and the background
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. X a. absolute X X b. static X c. relative d. fixed
d. fixed
If an element is configured with ___________ the other content on the page will appear to its left. X a. position: left; X b. position: relative; X c. float :left; X d. float: right;
d. float: right;
A _________________ is a smooth blending of shades from one color to another. Question options: X a. transition X b. transform c. shadow d. gradient
d. gradient
When using the box model, the _____ is always transparent. Question options: X a. border X b. content X c. spacing X d. margin
d. margin
________ flow displays the elements on the page in the order they appear in the web page source code. X a. default X X b. source code X c. browser d. normal
d. normal