Deck 4: Cascading Style Sheets Basics

ملء الشاشة (f)
exit full mode
سؤال
Use the ______ element to create a generic area or section on a web page that is physically separated from others.

A) div
B) strong
C) h1
D) small
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
To apply a style to exactly one element on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) None of the above
سؤال
Which of the following is a CSS selector that will configure the paragraph elements within the footer element.

A) p footer
B) footer p
C) #footer p
D) .footer p
سؤال
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.

A) body {background-color:#eaeaea; }
B) document {background-page:#eaeaea; }
C) body {bgcolor:#eaeaea; }
D) None of the above
سؤال
CSS was first approved as a standard by the W3C in ______.

A) 1996
B) 2002
C) 1992
D) none of the above
سؤال
According to the CSS order of precedence, ______ styles override ________ styles.

A) external, embedded
B) embedded, inline
C) inline, external
D) external, inline
سؤال
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.

A) Embedded
B) Inline
C) External
D) Imported
سؤال
Which of the following will configure all the span elements with red (#FF0000) text color?

A) span { color: #FF0000; }
B) #span { color: #FF0000; }
C) .span { color: #FF0000; }
D) < span style="color: #FF0000;" >
سؤال
Select the items below that can be used as a CSS Selector.

A) an HTML element
B) a class name
C) an id name
D) All of the above
سؤال
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.

A) div
B) span
C) both a and b
D) neither a nor b
سؤال
Use the _____ element to code embedded styles on a web page.

A) link
B) style
C) embed
D) css
سؤال
Which of the following is the CSS property used to set the text color?

A) bgcolor
B) background-color
C) color
D) none of the above
سؤال
Use the ______ element to associate a web page with an external style sheet.

A) target
B) a
C) include
D) link
سؤال
Cascading Style Sheet rules are comprised of:

A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) Elements and Attributes
سؤال
Which of the following is a CSS selector that will configure the anchor elements within the nav element.

A) nav a
B) .nav a
C) nav anchor
D) #nav a
سؤال
An External Style Sheet uses the _____ file extension.

A) ess
B) css
C) html
D) No file extension is necessary
سؤال
Which of the following is the CSS property used to set the background color?

A) bgcolor
B) background-color
C) color
D) none of the above
سؤال
Where do you place the code to associate a web page with an external style sheet?

A) in the external style sheet
B) in the DOCTYPE of the web page document
C) in the body section of the web page document
D) in the head section of the web page document
سؤال
To apply a style to one or more of elements on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) attribute
سؤال
Select the code below that configures a class called "offer" with blue text using CSS.

A) offer { color: blue; }
B) .offer { color: blue; }
C) .offer { text: blue; }
D) #offer { color: blue; }
سؤال
_____ External styles override or take precedence over inline styles.
سؤال
Which type of selector is specified by placing a # symbol in front of the selector name?
a. tag
b. first
c. class
d. id
True or False.
25 ____ Embedded styles override or take precedence over external styles.
سؤال
Which of the following is an HTML attribute that configures inline styles?

A) link
B) style
C) id
D) type
سؤال
Which of the following is correct CSS syntax?

A) p { color: #000000; }
B) p { color=#000000; }
C) p : color #000000;
C) p { color;#000000; }
سؤال
Which of the following symbols terminates a style declaration?

A) : colon
B) ; semi-colon
C) ! exclamation mark
D) # hash mark
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Cascading Style Sheets Basics
1
Use the ______ element to create a generic area or section on a web page that is physically separated from others.

A) div
B) strong
C) h1
D) small
A
2
To apply a style to exactly one element on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) None of the above
D
3
Which of the following is a CSS selector that will configure the paragraph elements within the footer element.

A) p footer
B) footer p
C) #footer p
D) .footer p
B
4
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.

A) body {background-color:#eaeaea; }
B) document {background-page:#eaeaea; }
C) body {bgcolor:#eaeaea; }
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
CSS was first approved as a standard by the W3C in ______.

A) 1996
B) 2002
C) 1992
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
According to the CSS order of precedence, ______ styles override ________ styles.

A) external, embedded
B) embedded, inline
C) inline, external
D) external, inline
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.

A) Embedded
B) Inline
C) External
D) Imported
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which of the following will configure all the span elements with red (#FF0000) text color?

A) span { color: #FF0000; }
B) #span { color: #FF0000; }
C) .span { color: #FF0000; }
D) < span style="color: #FF0000;" >
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Select the items below that can be used as a CSS Selector.

A) an HTML element
B) a class name
C) an id name
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.

A) div
B) span
C) both a and b
D) neither a nor b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Use the _____ element to code embedded styles on a web page.

A) link
B) style
C) embed
D) css
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following is the CSS property used to set the text color?

A) bgcolor
B) background-color
C) color
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Use the ______ element to associate a web page with an external style sheet.

A) target
B) a
C) include
D) link
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Cascading Style Sheet rules are comprised of:

A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) Elements and Attributes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which of the following is a CSS selector that will configure the anchor elements within the nav element.

A) nav a
B) .nav a
C) nav anchor
D) #nav a
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
An External Style Sheet uses the _____ file extension.

A) ess
B) css
C) html
D) No file extension is necessary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which of the following is the CSS property used to set the background color?

A) bgcolor
B) background-color
C) color
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Where do you place the code to associate a web page with an external style sheet?

A) in the external style sheet
B) in the DOCTYPE of the web page document
C) in the body section of the web page document
D) in the head section of the web page document
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
To apply a style to one or more of elements on a web page, configure a CSS _____________.

A) group
B) id
C) class
D) attribute
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Select the code below that configures a class called "offer" with blue text using CSS.

A) offer { color: blue; }
B) .offer { color: blue; }
C) .offer { text: blue; }
D) #offer { color: blue; }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
_____ External styles override or take precedence over inline styles.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which type of selector is specified by placing a # symbol in front of the selector name?
a. tag
b. first
c. class
d. id
True or False.
25 ____ Embedded styles override or take precedence over external styles.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following is an HTML attribute that configures inline styles?

A) link
B) style
C) id
D) type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following is correct CSS syntax?

A) p { color: #000000; }
B) p { color=#000000; }
C) p : color #000000;
C) p { color;#000000; }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following symbols terminates a style declaration?

A) : colon
B) ; semi-colon
C) ! exclamation mark
D) # hash mark
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.