Deck 3: Cascading Style Sheets (CSS)

ملء الشاشة (f)
exit full mode
سؤال
Which CSS property is the bold value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
If you want to apply the same formatting feature(s) to more than one type of element, you can implement that with one CSS rule, where the element types appear at the left, separated by:

A) spaces.
B) commas.
C) semicolons.
D) colons.
سؤال
In a CSS rule, if you specify a property with a value of initial, it forces the default value to be used for that property.
سؤال
Coding conventions suggest positioning the style container (with CSS rules) at the top of the web page's body container.
سؤال
Suppose that a CSS rule uses the selector q.dark. The rule matches elements whose type is "dark" and whose class attribute has a value of "q".
سؤال
The ______ element is a generic block element that does not provide any special meaning by itself.
سؤال
A universal selector is considered to be a wildcard. What is a wildcard?
سؤال
What is the principle of locality? In your answer, you must mention local CSS rules and global CSS rules.
سؤال
Provide a class selector rule that displays matching elements with italicized text. For your class selector, use italics as the class attribute value.
سؤال
For the font-size property, it is legal to specify a value in em units. What did "em" originally stand for?
سؤال
Given the following CSS rule, which type of selector is used?
<code>* {color: blue;}</code>

A) Type selector
B) Universal selector
C) Class selector
D) Pseudo selector
سؤال
To draw a line through an element's text, you should use which of the following property-value pairs?

A) <code>text-transform: strike-through</code>
B) <code>text</code>-transform: <code>line-out</code>
C) text-<code>decoration: line-through</code>
D) text-<code>decoration: strike-out</code>
سؤال
To match an element, an ID selector matches the element's:

A) <code>class</code> attribute value.
B) <code>id</code> attribute value.
C) type.
سؤال
Normally, you should try to separate web page content code from CSS code.
سؤال
When applied to a <code>p</code> element, the <code>text-align: justify</code> property-value pair causes the paragraph's text to be right aligned with the right edge of the p element's container.
سؤال
If you want to use multiple words for a <code>class</code> attribute value, coding conventions suggest using hyphens to separate the words.
سؤال
An <code>id</code> attribute's value must be unique within a particular web page.
سؤال
If you specify an element at the left of a selector, that's an example of a(n) ______ selector.
سؤال
The __________ property specifies the width of the area on the interior of an element's border.
سؤال
Code that is relatively easy to make changes to in the future is referred to as __________.
سؤال
What is the default value for the border-style property?

A) None
B) Solid
C) Visible
D) Black
سؤال
The font shorthand property incorporates granular font sub-properties. What character goes between the values for those sub-properties?

A) Space
B) Comma
C) Semicolon
D) Colon
سؤال
Which CSS property is the small-caps value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
سؤال
Which of the following is the hexadecimal-format RGB value for white?

A) # (100,100,100)
B) # (ff,ff,ff)
C) # 000000
D) # ffffff
سؤال
If you apply the opacity property as part of a CSS rule, it will affect the opacity for:

A) the foreground and background colors for matched elements.
B) the foreground color for matched elements.
C) the background color for matched elements.
سؤال
The text-indent property specifies the size of the indentation of all of the lines in a block of text.
سؤال
A generic font name should go at the left of a font-family list of font names.
سؤال
For HSL color values, the hue value indicates where the color is along the white-black spectrum.
سؤال
The CSS __________ service tool verifies that CSS code comports with the W3C's CSS standard.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/29
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Cascading Style Sheets (CSS)
1
Which CSS property is the bold value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
C
2
If you want to apply the same formatting feature(s) to more than one type of element, you can implement that with one CSS rule, where the element types appear at the left, separated by:

A) spaces.
B) commas.
C) semicolons.
D) colons.
B
3
In a CSS rule, if you specify a property with a value of initial, it forces the default value to be used for that property.
True
4
Coding conventions suggest positioning the style container (with CSS rules) at the top of the web page's body container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
5
Suppose that a CSS rule uses the selector q.dark. The rule matches elements whose type is "dark" and whose class attribute has a value of "q".
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
6
The ______ element is a generic block element that does not provide any special meaning by itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
7
A universal selector is considered to be a wildcard. What is a wildcard?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the principle of locality? In your answer, you must mention local CSS rules and global CSS rules.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
9
Provide a class selector rule that displays matching elements with italicized text. For your class selector, use italics as the class attribute value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
10
For the font-size property, it is legal to specify a value in em units. What did "em" originally stand for?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
11
Given the following CSS rule, which type of selector is used?
<code>* {color: blue;}</code>

A) Type selector
B) Universal selector
C) Class selector
D) Pseudo selector
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
12
To draw a line through an element's text, you should use which of the following property-value pairs?

A) <code>text-transform: strike-through</code>
B) <code>text</code>-transform: <code>line-out</code>
C) text-<code>decoration: line-through</code>
D) text-<code>decoration: strike-out</code>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
13
To match an element, an ID selector matches the element's:

A) <code>class</code> attribute value.
B) <code>id</code> attribute value.
C) type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
14
Normally, you should try to separate web page content code from CSS code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
15
When applied to a <code>p</code> element, the <code>text-align: justify</code> property-value pair causes the paragraph's text to be right aligned with the right edge of the p element's container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
16
If you want to use multiple words for a <code>class</code> attribute value, coding conventions suggest using hyphens to separate the words.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
17
An <code>id</code> attribute's value must be unique within a particular web page.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
18
If you specify an element at the left of a selector, that's an example of a(n) ______ selector.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
19
The __________ property specifies the width of the area on the interior of an element's border.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
20
Code that is relatively easy to make changes to in the future is referred to as __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
21
What is the default value for the border-style property?

A) None
B) Solid
C) Visible
D) Black
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
22
The font shorthand property incorporates granular font sub-properties. What character goes between the values for those sub-properties?

A) Space
B) Comma
C) Semicolon
D) Colon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which CSS property is the small-caps value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following is the hexadecimal-format RGB value for white?

A) # (100,100,100)
B) # (ff,ff,ff)
C) # 000000
D) # ffffff
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
25
If you apply the opacity property as part of a CSS rule, it will affect the opacity for:

A) the foreground and background colors for matched elements.
B) the foreground color for matched elements.
C) the background color for matched elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
26
The text-indent property specifies the size of the indentation of all of the lines in a block of text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
27
A generic font name should go at the left of a font-family list of font names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
28
For HSL color values, the hue value indicates where the color is along the white-black spectrum.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
29
The CSS __________ service tool verifies that CSS code comports with the W3C's CSS standard.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 29 في هذه المجموعة.