Deck 4: Applying Css Styles to Webpages
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/101
Play
Full screen (f)
Deck 4: Applying Css Styles to Webpages
1
When more than one value is provided for the font-family property, the additional values are called _____ values.
A)fallback
B)supplementary
C)rollover
D)add-on
A)fallback
B)supplementary
C)rollover
D)add-on
A
2
If one wants to format the content in the div id="container" section, then #container should be used as a(n) _____.
A)declaration
B)anchor
C)definition
D)selector
A)declaration
B)anchor
C)definition
D)selector
D
3
The best practice is to apply _____ styles when one wants to control the style of content within one pair of Hypertext Markup Language (HTML) tags.
A)embedded
B)disc
C)inline
D)external
A)embedded
B)disc
C)inline
D)external
C
4
The hexadecimal value 0000FF specifies a _____ color.
A)mix of red and green
B)pure blue
C)mix of blue and green
D)pure green
A)mix of red and green
B)pure blue
C)mix of blue and green
D)pure green
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
5
The font-weight property takes the value _____.
A)oblique
B)normal
C)bolder
D)justify
A)oblique
B)normal
C)bolder
D)justify
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
6
An _____ style takes precedence over other styles defined in a style sheet.
A)embedded
B)external
C)inline
D)internal
A)embedded
B)external
C)inline
D)internal
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
7
A _____ is a rule that defines the appearance of an element on a webpage.
A)cascade
B)syntax
C)semantic
D)style
A)cascade
B)syntax
C)semantic
D)style
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
8
The code:
My Website
Body {
background-color: green;
}
Exemplifies a(n) _____ style sheet where the style rule is placed between the opening and closing tags.
A)embedded
B)external
C)inline
D)linked
My Website
Body {
background-color: green;
}
Exemplifies a(n) _____ style sheet where the style rule is placed between the opening and closing tags.
A)embedded
B)external
C)inline
D)linked
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
9
An internal style sheet is also known as a(n) _____ style sheet.
A)embedded
B)sequential
C)inline
D)insync
A)embedded
B)sequential
C)inline
D)insync
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
10
An external style sheet is also called a(n) _____ style sheet.
A)embedded
B)insync
C)inline
D)linked
A)embedded
B)insync
C)inline
D)linked
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
11
A feature of the Cascading Style Sheets (CSS) properties is that paragraphs and headings can _____ the font and color rules for the body selector.
A)inherit
B)cascade
C)generate
D)create
A)inherit
B)cascade
C)generate
D)create
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
12
If a common style is to applied to more than one webpage in a website, a(n) _____ style sheet should be used.
A)embedded
B)disc
C)inline
D)external
A)embedded
B)disc
C)inline
D)external
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
13
The declaration _____ indicates that the primary font that the browser tries to use is the Cambria font.
A)font-family: Cambria;
B)font-family: "serif", Times New Roman, Cambria;
C)font-family: Cambria, "Times New Roman", serif;
D)font-family: pr, "Times New Roman", serif;
A)font-family: Cambria;
B)font-family: "serif", Times New Roman, Cambria;
C)font-family: Cambria, "Times New Roman", serif;
D)font-family: pr, "Times New Roman", serif;
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
14
The _____ property describes specific and general font names.
A)font-text
B)font-style
C)font-names
D)font-family
A)font-text
B)font-style
C)font-names
D)font-family
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
15
In the context of a style rule including a selector and a declaration, _____ formats h1 elements using blue text.
A)color=blue
B)h1 {color: blue;}
C){color: blue}
D)h1 (color=blue;)
A)color=blue
B)h1 {color: blue;}
C){color: blue}
D)h1 (color=blue;)
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
16
Style sheets are said to _____ because each type of style has a specified level of precedence in relationship to the others.
A)embed
B)cascade
C)merge
D)unite
A)embed
B)cascade
C)merge
D)unite
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
17
With a(n) _____ style, one adds a style to the start tag for an element.
A)embedded
B)inline
C)semantic
D)external
A)embedded
B)inline
C)semantic
D)external
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
18
In Special Note , the _____ is everything between the quotation marks.
A)tagging note
B)declaration
C)style rule
D)marked up text
A)tagging note
B)declaration
C)style rule
D)marked up text
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
19
_____ elements are displayed without line breaks so they flow within the same line.
A)Inline
B)Header
C)Block
D)Nav
A)Inline
B)Header
C)Block
D)Nav
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
20
_____ is a language used to describe the formatting of a document written in a markup language such as Hypertext Markup Language (HTML) 5.
A)Designing Style Sheets
B)Cascading Style Sheets
C)Segregation Style Sheets
D)Web paging Style sheets
A)Designing Style Sheets
B)Cascading Style Sheets
C)Segregation Style Sheets
D)Web paging Style sheets
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
21
The _____ attribute of a link element uses the stylesheet value to indicate that a document is linked to a style sheet.
A)rel
B)lnk
C)href
D)span
A)rel
B)lnk
C)href
D)span
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
22
To create a class selector, the style rule should begin with a _____ followed by the class attribute value.
A)semi colon
B)comma
C)period
D)hash tag
A)semi colon
B)comma
C)period
D)hash tag
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
23
To style the div id="container" element, _____ is used as the selector.
A).container
B)#container
C):container
D)%container
A).container
B)#container
C):container
D)%container
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
24
Identify the rule centers an h1 element.
A) h1 { text-align: center;
}
B)text-align: center ;
C) { align: center;
}
D) h1 { align: center;
}
A) h1 { text-align: center;
}
B)text-align: center ;
C) { align: center;
}
D) h1 { align: center;
}
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
25
Using _____ as the value for the list-style-position property displays the bullet or number within the list's content block.
A)inside
B)padded
C)parallel
D)composed
A)inside
B)padded
C)parallel
D)composed
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
26
When errors are detected in a Cascading Style Sheets (CSS) file, the _____ provides information about the location of each error so that one can identify and correct them.
A)validator
B)evaluator
C)compiler
D)decoder
A)validator
B)evaluator
C)compiler
D)decoder
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
27
The span tag ( ) and the anchor tag ( ) are examples of _____ elements.
A)header
B)inline
C)block
D)nav
A)header
B)inline
C)block
D)nav
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
28
By defining Cascading Style Sheets (CSS) styles in a style sheet separate from the Hypertext Markup Language (HTML) code, one can format a webpage in multiple ways such as _____.A)changing the background color of the webpage B)increasing the size of text
C)segregating paragraphs in a text
D)adding borders to elements
C)segregating paragraphs in a text
D)adding borders to elements
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
29
The first step while using an _____ style sheet is to use a text editor to create and save a document with a .css extension.
A)external
B)embedded
C)internal
D)inline
A)external
B)embedded
C)internal
D)inline
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
30
The _____ separates the padding and the margin of a block element.
A)header
B)footer
C)separator
D)border
A)header
B)footer
C)separator
D)border
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
31
The _____ property rounds the corners of a block element's border.
A)border
B)border-style
C)border-radius
D)box-shadow
A)border
B)border-style
C)border-radius
D)box-shadow
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
32
The _____ property allows the positioning of an element to the right or left of other elements.
A)display
B)margin
C)text-align
D)float
A)display
B)margin
C)text-align
D)float
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
33
The _____ property can be used to remove the float effect if one does not want text to wrap around an image.
A)display
B)padding
C)text-align
D)clear
A)display
B)padding
C)text-align
D)clear
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
34
_____ can provide additional information about the area where styles are applied or other helpful explanations, such as what the styles do.
A)Header notes
B)Comments
C)Wraps
D)Footer notes
A)Header notes
B)Comments
C)Wraps
D)Footer notes
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
35
In the _____ property, to center all of the elements so that a page appears centered within a browser window, one should create styles to set the left and right margins to auto.
A)display
B)margin
C)text-align
D)box-shadow
A)display
B)margin
C)text-align
D)box-shadow
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
36
An _____ style sheet is used to create styles that apply to more than one webpage in a website.
A)embedded
B)external
C)internal
D)inline
A)embedded
B)external
C)internal
D)inline
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
37
The four values of left (the default), center, right, or justify are used by the _____ property.
A)display
B)margin-padding
C)text-align
D)box-shadow
A)display
B)margin-padding
C)text-align
D)box-shadow
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
38
When a Cascading Style Sheets (CSS) document is _____, it confirms that all of the code is correct and follows the established rules for CSS.
A)authenticated
B)compiled
C)pipelined
D)validated
A)authenticated
B)compiled
C)pipelined
D)validated
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
39
The correct representation of a Cascading Style Sheets (CSS) comment is _____.
A)//* Place your comment here *//
B).
C)/* Place your comment here */
D)*/ Place your comment here /*
A)//* Place your comment here *//
B).
C)/* Place your comment here */
D)*/ Place your comment here /*
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
40
The style rule used to set the same font family property and values for the header, nav, and footer elements is _____. header, nav, footer Calibri, Arial, sans-serif;
A) { font-family: Calibri, Arial, sans-serif;
}
B)header, nav, footer Calibri, Arial, sans-serif;
C)header, nav, footer { font-family: Calibri, Arial, sans-serif;
}
D){header, nav, footer}
A) { font-family: Calibri, Arial, sans-serif;
}
B)header, nav, footer Calibri, Arial, sans-serif;
C)header, nav, footer { font-family: Calibri, Arial, sans-serif;
}
D){header, nav, footer}
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
41
In the context of style sheet precedence, external styles beat embedded styles and embedded styles beat inline styles.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
42
The sides of the Cascading Style Sheets (CSS) box model is referred to in counter clockwise order: left, right, bottom, and top.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
43
The first version of Cascading Style Sheets (CSS) included styles to control the positioning of elements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
44
Style sheets restrict a web designer from easily rebranding a website.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
45
The selector of a Cascading Style Sheets (CSS) rule defines the exact formatting of a style.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
46
Linked style sheets do not contain any Hypertext Markup Language (HTML) tags.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
47
A valid value for the font-size property is _____.A)an actual numeric size B)the value oblique
C)a percentage
D)a hexadecimal value
C)a percentage
D)a hexadecimal value
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
48
Websites developed with Hypertext Markup Language (HTML) 5 alone can be functional, but they lack the important element of visual appeal.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
49
Cascading Style Sheets (CSS) supports _____ styles.A)virtual B)inline
C)embedded
D)external
C)embedded
D)external
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
50
An external style sheet is used when one wants to create styles for a single webpage that are different from the rest of the website.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
51
The _____ is an example of block elements.A)header B)span
C)main
D)footer
C)main
D)footer
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
52
The best practice is to apply an inline style sheet when one wants to change the style of one page.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
53
The nav element is used to group inline elements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
54
The declaration of a Cascading Style Sheets (CSS) rule includes at least one property to apply to the selected element.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
55
Each Cascading Style Sheets (CSS) rule consists of a _____.A)semantic B)selector
C)declaration
D)definition
C)declaration
D)definition
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
56
External styles defeat the purpose and advantages of separating style from content, so they should be used sparingly.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
57
Block elements can contain inline elements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
58
The color code for white in the RGB (Red, Green, Blue) notation is rgb(0,0,0).
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
59
An embedded style sheet takes precedence over an external style sheet.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
60
When a style is changed in an embedded stylesheet, it automatically applies the change to every page linked to that style sheet.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
61
For the border-style property, the horizontal and vertical offset measurements must be specified.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
62
Changing the look of an entire website is sometimes called _________ the website.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
63
While creating style rules for Hypertext Markup Language (HTML) 5 structural elements, all the structural sections should be formatted using the display property.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
64
In the declaration part of the Cascading Style Sheets (CSS) rule, the _________ identifies the style quality or characteristic to apply, such as color (text color), background-color, text-indent, border-width, or font-style.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
65
An id descriptor uses the id attribute value of a Hypertext Markup Language (HTML) element to select a single element.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
66
If a website template is linked to a style sheet file, then any new pages created from the template will already be linked to the style sheet.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
67
In the context of font size measurement units, the unit _________ is used for printing webpages.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
68
A(n) _________ style sheet is a text file with the .css file extension.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
69
The default value for the list-style-position property is inside, which displays the list item with a bullet or number inside the list's content block.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
70
According to the World Wide Web Consortium (W3C), with Hypertext Markup Language (HTML) 5, the type attribute is highly essential.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
71
If a selector has more than one Cascading Style Sheets (CSS) rule, _________ determines which CSS rule to apply.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
72
After creating a Cascading Style Sheets (CSS) file, it must be linked to all the webpages that will use its styles.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
73
_________ provide a means to separate style from content.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
74
The valid values for the float property are top and bottom , indicating where to display (or float) the element.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
75
The justify value of the text-align property is used to center content within an element.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
76
To style class="mobile", #mobile must be used as the selector.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
77
Each Cascading Style Sheets (CSS) rule consists of a _________, which is the part of the statement that identifies what to style.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
78
Applying a shadow to the header element diminishes its design quality.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
79
When an image is floated to the right or left of elements containing text content, the effect is to wrap the text around the image.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
80
With the Internet Explorer versions 9 through 11, using the display property with a value of "block" ensures the main element will be displayed consistently as a block.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck