CIT 384- Midtem 2
Which of the following should you NOT do when using CSS3 properties to create text columns?
Justify the text in the column
By default, the box for a block element is as wide as the ___that it's in.
block
In the rule set that follows, the selector applies to all elements that have "red" as their ____ name.
class
You use a ___selector when the mouse hovers over a list item that contains a submenu so only the submenu for that list item is displayed.
class
Which of the following units of measurement is equal to the font size for the current font?
em
1. By default, if you specify a background image for a block element, it will be ____both horizontally and vertically, so it fills the block element.
repeated
Underlining and overlining are a type of text formatting that is referred to as
text decoration
Which of the following selectors applies to all <a> elements with "hot" as their class name that are coded within a div element that has "header" as its id?
#header a: hot
which of the following selectors is most specific?
#nav
Provides user with information:
. alert
The code that follows: padding: .5em 0 .25em; Applies this padding to an element:
.5em above, 0 left and right, and .25em below
which of the following is a valid selector for a class named menu?
.menu
The four pseudo-class selectors for the links are:
1. link 2. visited 3. active 4. hover
If the bottom margin for one element is 1.5 em and the top margin for the element below it is 1 em, how large is the margin between the two elements when the page is rendered in a browser?
1.5 em
When you use ____ positioning with CSS, the other elements on the page are positioned as if the elements wasn't there.
Absolute
To stop an element from flowing into the space on the side of a floated element, you can code the ____property
Clear
Which if the following techniques can you NOT use to create a two-column layout
Code the columns in any order and then float both columns to the left
Which of the following is NOT one of the ways that you can specify a color in CSS?
Color: getColor ("red");
Which of the following is NOT something you can do with the browser developer tools?
Display all the styles in each style sheet that's attached to a document.
When you use____ positioning with CSS, the positioned element doesn't move in the browser window, even when you scroll.
Fixed
If you want to use a ___page layout, you set the width of the page to a percent
Fluid
When you code a selector that selects by ___ the rule set applies to just one HTML element.
ID
When you set the position property for a block element to fixed, the element:
Is positioned relative to the browser window
To specify a color in a CSS rule, you can code a/an____ value in percentages or in hexadecimal numbers.
RGB
Which of the following can you NOT do when adding shadows to text?
Set the opacity of the shadow
When you set the position property for as block element to absolute, the browser:
Takes the element out of the flow of elements on the web page
When you set the float property for a block element to left, the elements that follow it will flow into the space
To the right of the floated element if there's enough space
When you use an external style sheet with an HTML document you get all but one of the benefits that follow. Which one is it?
Your CSS files are easy to create and maintain
You use ___positioning to position a submenu directly below an item in the navigation bar.
absolute
If you set the background color for the body of a page to blue and you don't set the background color for a section within the body, the background of the section will be
blue
To provide the top-level formatting for a page, a style sheet commonly formats: ____ and HTML5 ____elements
body; semantic
For a three-column layout, you can:
code the main content and asides in any sequence and then float the first aside and the main content to the left and the second aside to the right
By default, the box for a block element is as tall as the __requires.
content
In the rule set that follows the selector selects all paragraph elements that are of _____ the element with "main" as its id.
descendants
A child selector in CSS allows you to select elements that are a ___ descendant of an element
direct
If you want the user to be able to click anywhere in a box in a navigation list that's created by using<a> elements within the list items of an unordered list, you must: set the____ property for the list items to___
display; block
To include styles in an HTML document, you can use an external style sheet, an _____ style sheet or style attributes on inline HTML elements.
embedded
The New Roman is a font
family
For user accessibility, you should apply the same formatting to the focus pseudo-class for an element as you apply to the____ pseudo-class for that element.
hover
One way to create a horizontal navigation menu with an unordered list is to set the display properly for the list items to
inline
To change the left alignment of the items in an unordered list, you set the
left padding for the ul element
To include a CSS file in an HTML document, you use the ____ element.
link
If you want to use padding to control the spacing before and after h2 elements, you should start by setting the ____for those elements to zero.
margin
To create a multi-tier navigation menu, you use a/an
nested list
The RGB and HSLA colors that are available with CSS3 let you specify:
opacity of the color
Which of the following formatting can you NOT apply to boxes using CSS3?
radial gradients
You can use ems or percentages to specify a ___ unit of measurement.
relative
For a two-column layout where the main content is fluid and the aside Is fixed, you use CSS to
set the body width to a percent and don't set the section width
You use a reset selector to :
set the margins and padding for all elements to zero
If more than one rule set is applied to an element, the rule set with the selector that has the highest ___is used.
specificity
In the box model, the border comes between the margin and____for box.
the padding
If two CSS rules conflict, which of the following rules overrides the other rule?
the rule marked as !important in a web page
The normalize.css style sheet: Causes all browsers to render HTML elements
the same way
In the code that follows margin: 0 auto; the auto keyword means
to center the element horizontally within the containing block
The code that follows: border-style: solid none; means that the box should have solid
top and bottom borders
To calculate the height of a box when using the box model, you add the height of the content area to the sum of the heights of the
top and bottom borders, top and bottom margins, and top and bottom padding
Pseudo-class selectors let you apply formatting
when specific conditions occur
When you set a border for a block element, you can set the color, style, and
width
When you use CSS to set the float property for an element, you should also set the ____of the element
width