Quiz 3: Cascading Style Sheets (CSS) and Graphical Elements

Quiz 3: Cascading Style Sheets (CSS) and Graphical Elements

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

You use the <img> tag to: a. add a horizontal line to a Web page. b. add alternative text that appears if an image fails to load. c. display a graphical image on a Web page. d. add a non-breaking space to a Web page.

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (41)

Section 1

(41 cards)

You use the <img> tag to: a. add a horizontal line to a Web page. b. add alternative text that appears if an image fails to load. c. display a graphical image on a Web page. d. add a non-breaking space to a Web page.

Front

c. display a graphical image on a Web page.

Back

Which of the following is true about the color combinations you use for your Web site? a. Once a color scheme is chosen, most sites use darker shades of chosen colors for background. b. Using lighter shades of chosen colors for background detracts from the professional look of the site. c. Color combinations that are appropriate for your country's culture are generally appropriate for all cultures. d. Color combinations can convey the personality of the site by imposing tone and mood.

Front

d. Color combinations can convey the personality of the site by imposing tone and mood.

Back

Which property can you add to the body selector in an external CSS file to specify the color of the page background? a. The color property b. The background-image property c. The background-color property d. The font-family property

Front

c. The background-color property

Back

What will occur if your HTML code asks for a color that the browser or operating system cannot support? a. The computer will compensate by dithering. b. The computer will compensate by imaging. c. The computer will represent the color as gray. d. The computer will represent the color as white.

Front

a. The computer will compensate by dithering.

Back

What is the default value for aligning images relative to text using CSS? a. top b. left c. middle d. bottom

Front

d. bottom

Back

The browser-safe color palette is a standard of 216 colors that: a. will render consistently in any browser or with any operating system. b. are defined for use in earlier versions of HTML but are deprecated in HTML5. c. are defined for use in HTML5 but are not backward-compatible to earlier versions of HTML. d. are not defined by RGB values or hexadecimal code.

Front

a. will render consistently in any browser or with any operating system.

Back

Which of the following would be the best method to use for floating images to the left and right of text in HTML5 if you are developing sites with multiple pages? a. External CSS classes b. The width attribute of the <img> element c. The height attribute of the <img> element d. The inline CSS style attribute

Front

a. External CSS classes

Back

What happens if you specify a font name in an external CSS file that a user's system does not support? a. The text to which the font is applied will appear as blue, underlined text. b. The text to which the font is applied will not render. c. The font you specified will be automatically added to the user's system. d. The font will display as a default font face.

Front

d. The font will display as a default font face.

Back

Which of the following is considered to be the preferred method of designing Web pages? a. Implementing a liquid design layout using CSS b. Implementing a fixed-width layout using CSS c. Implementing an absolute-positioning layout using CSS d. Implementing a multi-page layout using CSS

Front

a. Implementing a liquid design layout using CSS

Back

What happens when you place a CSS rule between the / and / characters? a. The rule will apply only to the default page in a Web site. b. The rule will be ignored. c. The rule will override all other styles in the HTML document. d. The rule will take precedence.

Front

b. The rule will be ignored.

Back

Why should you avoid adding spaces or hard returns within an <img> tag? a. Because this practice prevents the image from rendering in a browser b. Because HTML will render the additional spaces or hard returns, which may affect the placement of the image on the page c. Because XHTML will render the additional spaces or hard returns, which may affect the placement of the image on the page d. Because this practice makes the source code more difficult to interpret

Front

c. Because XHTML will render the additional spaces or hard returns, which may affect the placement of the image on the page

Back

What color does the mixture of red, green and blue light on a monitor screen produce? a. Brown b. White c. Black d. Violet

Front

b. White

Back

Lossy compression is a compression technology: a. that is not copyrighted. b. in which the more an image is compressed, the more its quality is reduced. c. in which the more an image is compressed, the more its quality is enhanced. d. that has no effect on the quality of the image.

Front

b. in which the more an image is compressed, the more its quality is reduced.

Back

In a CSS document, within what must you enclose properties and values when you define a rule for a specified selector? a. Apostrophes ( ' ' ) b. Curly braces ( { } ) c. Quotation marks ( " " ) d. Square brackets ( [ ] )

Front

b. Curly braces ( { } )

Back

Consider the following code from a CSS document: body {color: teal; font: white;} This code is an example of what? a. A rule b. A value c. A selector d. A property

Front

a. A rule

Back

In RGB code: a. the higher the numeric value representing a color, the lighter that color will be. b. the lower the numeric value representing a color, the less transparent that color will be. c. the lower the numeric value representing a color, the lighter that color will be. d. the higher the numeric value representing a color, the more transparent that color will be.

Front

a. the higher the numeric value representing a color, the lighter that color will be.

Back

You use the <hr> tag to: a. add alternative text that appears if a graphic fails to load. b. add a non-breaking space to a Web page. c. display a graphic image on a Web page. d. add a horizontal line to a Web page.

Front

d. add a horizontal line to a Web page.

Back

You can include non-keyboard characters in Web pages, such as © and ®, by entering a special HTML code for each character, called the escape sequence. With what characters must you start and end the escape sequence? a. You must start the escape sequence with an ampersand ( & ) and end with a tilde ( ~ ). b. You must start the escape sequence with a semicolon ( ; ) and end with an ampersand ( & ). c. You must start the escape sequence with an ampersand ( & ) and end with a semicolon ( ; ). d. You must start and end the escape sequence with quotation marks ( " " ).

Front

c. You must start the escape sequence with an ampersand ( & ) and end with a semicolon ( ; ).

Back

Why should you use succinct wording on Web pages, especially the home page, when designing your site? a. Because you need to allow room on each page for comments within the source code b. Because most users simply scan pages quickly looking for specific information or links to it c. Because most users want to see all topics on each page for easy reference d. Because you need to allow room on each page for as many navigational aids as possible

Front

b. Because most users simply scan pages quickly looking for specific information or links to it

Back

Why should you maintain an image's relative measurements if you resize it? a. To alter the image's original dimensions b. To maintain the image's height when you change its width c. To maintain the image's width when you change its height d. To avoid distorting the image

Front

d. To avoid distorting the image

Back

In a style sheet, what must you use to separate multiple declarations for one selector within a rule? a. A comma ( , ) b. A slash ( / ) c. A semicolon ( ; ) d. A colon ( : )

Front

c. A semicolon ( ; )

Back

What color does the hexadecimal value #FFFFFF represent? a. Brown b. Violet c. Black d. White

Front

d. White

Back

CSS allows you to change the typeface of text. Which of the following statements about the font-family property is true? a. If you list multiple fonts in the font-family property, the next font will attempt to render if the first font is not supported. b. You can only list a single font in the font-family property. c. If you list a single, multi-word font in the font-family property, you must enclose the font name within curly braces. d. If you list multiple fonts in the font-family property, the text will not render if the first font is not supported.

Front

a. If you list multiple fonts in the font-family property, the next font will attempt to render if the first font is not supported.

Back

What happens when you place an image file in a subdirectory and neglect to reference the subdirectory in the <img> tag's src attribute? a. The page will render without the image file, and a small box with an X will appear in its place. b. The page containing the image file will not render. c. The page will render with the image file because the src attribute automatically searches through the directory structure until the file is found. d. The page will render with the image file because all image, style sheet and Web page files must be somewhere in the directory.

Front

a. The page will render without the image file, and a small box with an X will appear in its place.

Back

Which technology enables you to place formatting instructions in an external text file to determine the look and feel for a Web page or site? a. HTML entities b. Cascading Style Sheets c. The browser-safe color palette d. The alt attribute

Front

b. Cascading Style Sheets

Back

In hexadecimal code, the number 16 is represented as: a. 15. b. F. c. A. d. 10.

Front

d. 10.

Back

Which <img> tag attribute specifies alternative text to appear while a graphic is loading, or in place of the graphic in non-graphical browsers? a. The text attribute b. The alt attribute c. The style attribute d. The src attribute

Front

b. The alt attribute

Back

What color does the hexadecimal value #000000 represent? a. Black b. Brown c. White d. Violet

Front

a. Black

Back

What is a CSS selector? a. The value in a markup tag you want to change with a CSS style b. Any element to which designated styles are applied c. A format instruction in a CSS file d. The property in a markup tag to which designated styles are applied

Front

b. Any element to which designated styles are applied

Back

Which technique should you use to indent a paragraph or create additional spaces between words on an HTML page? a. Insert a line break. b. Press the spacebar. c. Insert non-breaking spaces. d. Insert a character break.

Front

c. Insert non-breaking spaces.

Back

The HTML code < and > are examples of: a. left- and right-aligned images. b. non-keyboard characters. c. non-breaking spaces. d. left- and right-aligned horizontal rules.

Front

b. non-keyboard characters.

Back

Which attribute of the anchor (<a>) element determines the color of unvisited hyperlinks? a. a:link b. a:default c. a:text d. a:visited

Front

a. a:link

Back

Which of the following can be considered a benefit of Cascading Style Sheets (CSS)? a. The formatting instructions in the style sheet are not inherited throughout the document, providing flexibility. b. Making changes to elements in the site will update the style sheet. c. You can use CSS in lieu of HTML to develop Web pages. d. One simple change to the style sheet will change all elements across the site.

Front

d. One simple change to the style sheet will change all elements across the site.

Back

CSS allows you to change the size of text. Which of the following statements about the font-size property is true? a. The font-size property is deprecated in HTML5. b. The default size of text for the font-size property is 10 pixels. c. The font-size property should be used whenever possible instead of headings (h1 through h6). d. Headings (h1 through h6) should be used whenever possible instead of the font-size property.

Front

d. Headings (h1 through h6) should be used whenever possible instead of the font-size property.

Back

Which of the following can be considered a disadvantage of the Portable Network Graphics (PNG) format? a. The PNG format does not support transparency and interlacing. b. The PNG format uses lossless compression. c. The compression used in the PNG format is not copyrighted. d. Older browsers do not render the PNG format.

Front

d. Older browsers do not render the PNG format.

Back

By default, horizontal rules display: a. left-aligned on the page. b. right-aligned on the page. c. with a 3-D shading effect. d. centered on the page, indented from the left and right margins.

Front

c. with a 3-D shading effect.

Back

Which attributes are required for the <img> tag in HTML? a. The src and width attributes b. The height and alt attributes c. The width and height attributes d. The src and alt attributes

Front

d. The src and alt attributes

Back

HTML5 with CSS has introduced specific elements to structure Web pages. In which structure element should you include hypertext menus to access various pages of the Web site? a. The <article> structure element b. The <header> structure element c. The <nav> structure element d. The <aside> structure element

Front

c. The <nav> structure element

Back

Generally, which Web image format should you use if you want the highest image quality? a. Joint Photographic Experts Group (JPEG) b. Graphics Interchange Format (GIF) c. Portable Network Graphics (PNG) d. Windows Bitmap (BMP)

Front

a. Joint Photographic Experts Group (JPEG)

Back

Which attribute should you use with the <img> tag to specify the text to display if a user has configured his or her browser not to display images? a. The text attribute b. The src attribute c. The style attribute d. The alt attribute

Front

d. The alt attribute

Back

Which Web image format is best suited for line art, custom drawings and navigational images? a. Portable Network Graphics (PNG) b. Windows Bitmap (BMP) c. Graphics Interchange Format (GIF) d. Joint Photographic Experts Group (JPEG)

Front

c. Graphics Interchange Format (GIF)

Back