
CSS Quiz-1
Authored by Vanshika Singhal
Computers, Fun, Professional Development
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct syntax for referring the external style sheet?
<style src = example.css>
<style src = "example.css" >
<stylesheet> example.css </stylesheet>
<link rel="stylesheet" type="text/css" href="example.css">
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?
p {background-color : yellow;}
p {background-color : #yellow;}
all {background-color : yellow;}
all p {background-color : #yellow;}
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Are the negative values allowed in padding property?
Yes
No
Can't say
May be
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The CSS property used to specify the transparency of an element is -
opacity
filter
visibility
overlay
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter?
text-style : capital;
transform : capitalize;
text-transform : capital;
text-transform : capitalize;
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How to select the elements with the class name "example"?
example
#example
.example
class example
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The CSS property used to draw a line around the elements outside the border?
border
outline
padding
line
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?