W3Schools Quiz Results Css
W3Schools Quiz Results Css
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?
92% Correct:
Question 1:
What does CSS stand for?
Question 2:
What is the correct HTML for referring to an external style sheet?
<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?
Question 4:
Which HTML tag is used to define an internal style sheet?
<css>
<script>
Question 5:
Which HTML attribute is used to define inline styles?
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;}
{body:color=black;}
body:color=black;
Question 7:
How do you insert a comment in a CSS file?
// this is a comment
// this is a comment //
Question 8:
Which property is used to change the background color?
bgcolor
color
Question 9:
https://www.w3schools.com/quiztest/result.asp 3/15
2/25/22, 3:08 PM W3Schools Quiz Results
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?
fgcolor
text-color
Question 11:
Which CSS property controls the text size?
text-style
text-size
font-style
Question 12:
What is the correct CSS syntax for making all the <p> elements bold?
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: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?
transform:capitalize
text-style:capitalize
Question 15:
Which property is used to change the font of an element?
font-weight
font-style
Question 16:
How do you make the text bold?
font:bold;
style:bold;
Question 17:
How do you display a border like this:
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
padding-left
indent
Question 19:
When using the padding property; are you allowed to use negative values?
No Correct answer
Question 20:
How do you make a list that lists its items with squares?
list-type: square;
list: square;
Question 21:
How do you select an element with id 'demo'?
.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
*test
test
Question 23:
How do you select all p elements inside a div element?
div.p
div + p
Question 24:
How do you group selectors?
Question 25:
https://www.w3schools.com/quiztest/result.asp 8/15
2/25/22, 3:08 PM W3Schools Quiz Results
absolute
relative
I
20
2
FI
ED
.
https://www.w3schools.com/quiztest/result.asp 9/15