
Quiz-2 Sec-E
Authored by Mandeep Singh
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which of the following selectors selects any tag with an id attribute set?
E#id
.class
#id
*
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What will be the output of below mentioned code snippet?
p strong {background-color: yellow;}
Strong have yellow background
Strong element within a p element have a yellow background
Both p and strong have yellow background
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
class
elelment
id
none of the choices
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
By applying an ___________ a style can be applied to just a single tag.
class rule
element rule
id rule
none of the choices
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What type of selector is used in this case?
p {line-height: 150%;}
class selector
element selector
id selector
none of the choices
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
How many different types of selectors in CSS?
3
4
5
6
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
An id is NOT always unique within the page so it is chosen to select a single, unique element.
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?