CSS Selectors
Test
Model Test
Ebook
Quiz 1: Test on Basic CSS3
Quiz 2: Test on CSS3 selector
Quiz 3: Test on CSS3 Color, Unit and Value
Quiz 4: CSS Test on Formating Text
Quiz 5: Test on CSS3 Box-Model
Quiz 6: CSS3 Model Test one
Quiz 7: CSS3 Model Test Two
Index
CSS Home
CSS Basic
37
CSS Backgrounds
3
CSS Text Effects
26
CSS Layouts
5
CSS Colors
10
CSS Fonts
15
CSS Media Queries
1
CSS Selectors
30
CSS Cross-Browser
5
CSS Values an Units
20
CSS Box Model
13
CSS User Interface
1
Schools
Ebook
Question:
Which of the following is a class selector?
A
.abc
B
abc
C
#abc
D
div
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is a id selector?
A
#someId
B
.someId
C
someId
D
a
Note:
Not available
Show answer
Show Note
Report
Question:
Which selector matches elements of type E where the value of the attr attribute is exactly "x"?
A
E[attr="x"]
B
E[attr^="x"]
C
E[attr$="x"]
D
E[attr]
Note:
Not available
Show answer
Show Note
Report
Question:
Which selector matches elements of type E where the value of the attr attribute begins with "x"?
A
E[attr="x"]
B
E[attr^="x"]
C
E[attr$="x"]
D
E[attr-"x"]
Note:
Not available
Show answer
Show Note
Report
Question:
In Pseudo-classes
A
applied automatically by the browser depending on the position of the element or its interactive state.
B
applied styles to content based on its position in the HTML hierarchy.
C
both
D
none
Note:
Not available
Show answer
Show Note
Report
Question:
How can you apply one or more CSS class selectors to an element?
.abc{ } .bca{ }
A
class="abc"
B
class="abc bca"
C
id="abc"
D
class=".abc"
E
style="abc"
F
class=".abc .bca"
Note:
Not available
Show answer
Show Note
Report
Question:
What of the following is correct priority order by browser when multiple CSS rules are conflicted with the identical selectors?
A
1. inline CSS 2. Internal CSS 3. External CSS
B
1. External CSS 2. Internal CSS 3. Inline CSS
C
1. inline CSS 2. External CSS 3. Internal CSS
D
1. inline CSS 2. External CSS 3. Internal CSS
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following CSS rule contains syntax error?
A
p{margin-left:40px;}
B
p{margin-left:40px}
C
p{margin-left: 40px;}
D
p{margin-left:40 px;}
E
abc{margin-left: 40px;}
Note:
1. No space is allowed between value and unit of CSS property. 2. Type selector valid for only html element. Here abc is not valid html element.
Show answer
Show Note
Report
Question:
The universal selector is represented by _____.
A
$ (Dollar) sign
B
# (Hash) sign
C
& (ampersand) sign
D
* (asterisk) sign
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following pseudo-class matches the first letter of element E.
A
E:1st-letter
B
E:first-character
C
E:first-letter
D
E:firstletter
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
3
Next
Last
/3
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd