Module 2

11 September 2022
4.7 (114 reviews)
60 test answers

Unlock all answers in this set

Unlock answers (56)
question
Which of the following will configure all the span elements with red (#FF0000) text color
answer
Answer:
question
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.
answer
Answer: inline
question
CSS was first approved as a standard by the W3C in ______.
answer
Answer: 1996
question
Which of the following is correct CSS syntax?
answer
Answer: p { color: #000000; }
question
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.
answer
Answer: body {background-color:#eaeaea; }
question
According to the CSS rules of precedence, ______ styles override ________ styles.
answer
Answer: embedded, inline
question
Select the code below that configures a class called "offer" with blue text using CSS.
answer
Answer: .offer { color:blue; }
question
Which of the following is the CSS property used to set the text color?
answer
Answer: color
question
Select the items below that can be used as a CSS Selector.
answer
Answer: all of the above
question
Which of the following is an HTML attribute that configures inline styles?
answer
Answer: style
question
Use the _____ element to code embedded styles on a web page.
answer
Answer: style
question
Which of the following symbols terminates a style declaration?
answer
Answer: ; semi-colon
question
Which of the following is the CSS property used to set the background color?
answer
Answer: background-color
question
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.
answer
Answer: span
question
To apply a style to one or more of elements on a web page, configure a CSS _____________.
answer
Answer: class
question
Which of the following is a CSS selector that will configure the paragraph elements within the footer element.
answer
Answer: footer p
question
Cascading Style Sheet rules are comprised of:
answer
Answer: Selectors and Declarations
question
Which of the following is a CSS selector that will configure the anchor elements within the nav id.
answer
Answer: #nav a
question
Use the ______ element to associate a web page with an external style sheet.
answer
Answer: link
question
An External Style Sheet uses the _____ file extension.
answer
Answer: css
question
Choose the graphic format that can be made transparent.
answer
Answer: gif
question
Choose the item below that describes the process of creating an image with the lowest file size that still renders a good quality image.
answer
Answer: optimization
question
Choose the item that creates an image link to the school.html page when the school.gif graphic is clicked.
answer
Answer: school
question
Choose the technique below that will provide for accessibility when a web page uses graphics for the main navigation links.
answer
Answer: provide text hyperlinks in the page footer and configure an alt attribute for each navigation image
question
Select the element that displays an image on a web page.
answer
Answer: img
question
Use the _______________ property to configure an image to use as a list marker in an unordered list.
answer
Answer: list-style-image
question
Select the code below that will configure a background image called parchment.gif for a web page using CSS.
answer
Answer: body {background-image:url(parchment.gif); }
question
Select the code below that associates a favorites icon named favicon.ico with a web page document.
answer
Answer:
question
Select the attributes that are used in the area element to configure a clickable area on an image map.
answer
Answer: href, coords, shape, alt
question
Choose the graphic format that supports millions of colors, supports variable transparency levels, and uses lossless compression.
answer
Answer: png
question
Use the ______ attribute to display an image to the right of a block of text.
answer
Answer: align
question
The process of ensuring that web pages coded with new or advanced techniques still are usable in browsers that do not offer support for the newer features is called:
answer
Answer: progressive enhancement
question
A smaller version of a larger image that usually links to the larger image is called a:
answer
Answer: thumbnail image
question
Choose the attribute used to provide accessibility by configuring a text alternative that is available to browsers and other user agents that do not support graphics.
answer
Answer: alt
question
Use the _______ property to configure multiple backgrounds on an element.
answer
Answer: background
question
Choose the method to avoid when obtaining graphics for your website.
answer
Answer: Right-click and copy a graphic you like from any website
question
Use the _______________ property to eliminate the bullets from an unordered list.
answer
Answer: list-style-type
question
Select the browser's action when you configure BOTH a background color and background image for the body selector.
answer
Answer: display the background color while the background image loads and before the background image is displayed
question
Choose the graphic format that is best-suited to display photographs on web pages.
answer
Answer: jpg
question
A(n) ________ is an image that is configured so that parts of the image can be used as one or more hyperlinks.
answer
Answer: image map
question
Which of the following configures Arial, Verdana, or the default sans-serif font for an element?
answer
Answer: font-family: Arial, Verdana, sans-serif;
question
Use the __________ property to align text within an element.
answer
Answer: text-align
question
The letters in the acronym HSLA indicate:
answer
Answer: hue, saturation, lightness, alpha
question
The _______ is the area between the content and the border.
answer
Answer: padding
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?
answer
Answer: margin: 30px 0 0 150px;
question
Use the __________ property to configure italic text using CSS
answer
Answer: font-style
question
Use the ________________ property to confine the display of the background image.
answer
Answer: background-clip
question
Use the ___________________ property to resize or scale the background image.
answer
Answer:background-size
question
Use the __________ property to configure a minimum width for an element
answer
Answer: min-width
question
Use the __________ property to configure uppercase text
answer
Answer: text-transform
question
The browser prefix -webkit in a CSS property indicates that it is likely to be recognized by which of the following browsers?
answer
Answer: Safari
question
Which of the following configures a 1 pixel, solid black border for an element?
answer
Answer: border: 1px solid #000000;
question
A _________________ is a smooth blending of shades from one color to another.
answer
Answer: gradient
question
Use the ________________ property to configure rounded corners with CSS.
answer
Answer: border-radius
question
The default value for the border property for an element is:
answer
Answer: 0 pixels
question
The CSS3 _______ property configures the transparency of an element.
answer
Answer: opacity
question
When configuring the background color of an element, the background color is applied to both the content and ______ areas.
answer
Answer: padding
question
When using the box model, the _____ is always transparent.
answer
Answer: margin
question
Which of the following is used along with the width property to configure centered page content?
answer
Answer: margin-left: auto; margin-right: auto
question
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?
answer
Answer: padding: 0 10px 20px 10px;