0% found this document useful (0 votes)
211 views

CSS Quiz

The document is a CSS quiz containing 25 multiple choice questions testing knowledge of CSS syntax and properties. Some of the questions covered in the quiz include: what CSS stands for, how to refer to an external style sheet, which HTML tag defines an internal style sheet, how to insert comments in CSS, properties for changing text and background colors, font properties like font-size and font-weight, border properties, margin and padding, and CSS selectors for id, class, element, and grouping.

Uploaded by

Severus Snape
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
211 views

CSS Quiz

The document is a CSS quiz containing 25 multiple choice questions testing knowledge of CSS syntax and properties. Some of the questions covered in the quiz include: what CSS stands for, how to refer to an external style sheet, which HTML tag defines an internal style sheet, how to insert comments in CSS, properties for changing text and background colors, font properties like font-size and font-weight, border properties, margin and padding, and CSS selectors for id, class, element, and grouping.

Uploaded by

Severus Snape
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tuesday, 14th January 2019

CSS QUIZ
https://www.w3schools.com/quiztest/quiztest.asp?qtest=CSS

1. What does CSS stand for?


Cascading Style Sheets

2. What is the correct HTML for referring to an external style sheet?


<link rel="stylesheet" type="text/css" href="mystyle.css">

3. Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section

4. Which HTML tag is used to define an internal style sheet?


<style>

5. Which HTML attribute is used to define inline styles?


style

6. Which is the correct CSS syntax?


body {color: black;}

7. How do you insert a comment in a CSS file?


/* this is a comment */

8. Which property is used to change the background color?


background-color

9. How do you add a background color for all <h1> elements?


h1 {background-color:#FFFFFF;}

10. Which CSS property is used to change the text color of an element?
Color

11. Which CSS property controls the text size?


font-size

12. What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold;}

13. How do you display hyperlinks without an underline?


a{text-decoration:none;}

14. How do you make each word in a text start with a capital letter?
text-transform:capitalize

15. Which property is used to change the font of an element?


font-family

16. How do you make the text bold?


font-weight:bold;

Page 1 of 2
Tuesday, 14th January 2019
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;

18. Which property is used to change the left margin of an element?


margin-left

19. When using the padding property; are you allowed to use negative values?
No

20. How do you make a list that lists its items with squares?
list-style-type: square;

21. How do you select an element with id "demo"?


#demo

22. How do you select elements with class name "test"?


.test

23. How do you select all p elements inside a div element?


div p

24. How do you group selectors?


Separate each selector with a comma

25. What is the default value of the position property?


static

Page 2 of 2

You might also like