2/25/22, 3:08 PM W3Schools Quiz Results
Menu Log in
Dark mode
Dark code
HTML CSS
Ads by
Not interested Ad was Ad covered Ad was too
in this ad inappropriate content personal
Stop seeing this ad Why this ad?
CSS Quiz Results
Score: 23 of 25
92% Correct:
Question 1:
What does CSS stand for?
Cascading Style Sheets Your answer
Creative Style Sheets
Colorful Style Sheets
Computer Style Sheets
Question 2:
What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css"> Your answer
<stylesheet>mystyle.css</stylesheet>
https://www.w3schools.com/quiztest/result.asp 1/15
2/25/22, 3:08 PM W3Schools Quiz Results
<style src="mystyle.css">
Question 3:
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section Your answer
At the end of the document
In the <body> section
Question 4:
Which HTML tag is used to define an internal style sheet?
<style> Your answer
<css>
<script>
Question 5:
Which HTML attribute is used to define inline styles?
style Your answer
class
styles
font
https://www.w3schools.com/quiztest/result.asp 2/15
2/25/22, 3:08 PM W3Schools Quiz Results
Question 6:
Which is the correct CSS syntax?
body {color: black;} Your answer
{body;color:black;}
{body:color=black;}
body:color=black;
Question 7:
How do you insert a comment in a CSS file?
/* this is a comment */ Your answer
// this is a comment
// this is a comment //
' this is a comment
Question 8:
Which property is used to change the background color?
background-color Your answer
bgcolor
color
Question 9:
https://www.w3schools.com/quiztest/result.asp 3/15
2/25/22, 3:08 PM W3Schools Quiz Results
How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF;} Your answer
all.h1 {background-color:#FFFFFF;}
h1.all {background-color:#FFFFFF;}
Question 10:
Which CSS property is used to change the text color of an element?
color Your answer
fgcolor
text-color
Question 11:
Which CSS property controls the text size?
font-size Your answer
text-style
text-size
font-style
Question 12:
What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold;} Your answer
https://www.w3schools.com/quiztest/result.asp 4/15
2/25/22, 3:08 PM W3Schools Quiz Results
<p style="font-size:bold;">
p {text-size:bold;}
<p style="text-size:bold;">
Question 13:
How do you display hyperlinks without an underline?
a {text-decoration:none;} Your answer
a {text-decoration:no-underline;}
a {decoration:no-underline;}
a {underline:none;}
Question 14:
How do you make each word in a text start with a capital letter?
text-transform:capitalize Your answer
transform:capitalize
You can't do that with CSS
text-style:capitalize
Question 15:
Which property is used to change the font of an element?
font-family Your answer
https://www.w3schools.com/quiztest/result.asp 5/15
2/25/22, 3:08 PM W3Schools Quiz Results
font-weight
font-style
Question 16:
How do you make the text bold?
font-weight:bold; Your answer
font:bold;
style:bold;
Question 17:
How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
border-width:10px 1px 5px 20px; Your answer
border-width:10px 5px 20px 1px;
border-width:10px 20px 5px 1px;
border-width:5px 20px 10px 1px;
Question 18:
Which property is used to change the left margin of an element?
https://www.w3schools.com/quiztest/result.asp 6/15
2/25/22, 3:08 PM W3Schools Quiz Results
margin-left Your answer
padding-left
indent
Question 19:
When using the padding property; are you allowed to use negative values?
Yes Your answer
No Correct answer
Question 20:
How do you make a list that lists its items with squares?
list-style-type: square; Your answer
list-type: square;
list: square;
Question 21:
How do you select an element with id 'demo'?
#demo Your answer
.demo
demo
*demo
https://www.w3schools.com/quiztest/result.asp 7/15
2/25/22, 3:08 PM W3Schools Quiz Results
Question 22:
How do you select elements with class name 'test'?
.test Your answer
#test
*test
test
Question 23:
How do you select all p elements inside a div element?
div p Your answer
div.p
div + p
Question 24:
How do you group selectors?
Separate each selector with a comma Your answer
Separate each selector with a space
Separate each selector with a plus sign
Question 25:
https://www.w3schools.com/quiztest/result.asp 8/15
2/25/22, 3:08 PM W3Schools Quiz Results
What is the default value of the position property?
fixed Your answer
static Correct answer
absolute
relative
Study CSS in our CSS Tutorial
Kickstart your career
Get certified by completing a
course
Get certified w3schoo
l
s
CE
RT
I
20
2
FI
ED
.
https://www.w3schools.com/quiztest/result.asp 9/15