Classic CSS Practice Quiz
by Kwiz
Qs
16
Difficulty
Junior
Plays
11
Record
0:38
Description

This CSS practice quiz is designed to test your understanding of the basics of Cascading Style Sheets. The quiz covers selectors, properties and CSS rules, and is perfect beginners.

Questions originally published at https://www.afterhoursprogramming.com/tests/css/

Question Preview
What property do you use to create spacing between HTML elements?
Question Preview
When users tab through elements on a web page, the elements are highlighted. What CSS pseudo-class is applied to the highlighted elements?
Question Preview
What CSS property would be used to set an element's text color?
Question Preview
What does the acronym CSS stand for?
Question Preview
What property would you use to create space between the element’s border and inner content?
Question Preview
Which of the following techniques can be used to reference CSS on a webpage
Question Preview
What property can you use to set the vertical spacing in between lines of text?
Question Preview
What property can you use to set the background color of an element?
Question Preview
Which property is necessary to set an image in the background of an element?
Question Preview
How would you give an element a particular style when the user hovers over the element?
Question Preview
What selector would be used to reference all the elements with a class of “special”?
Question Preview
If you wanted to place an HTML element at a certain position on the page regardless of any of the other elements, what value would you give the position property?
Question Preview
What property would you use to change the size of an HTML element’s border?
Question Preview
How do you set a particular style for a link that a user has previously visited?
Question Preview
How to set the style for a specific HTML element with an id of “special”?
Question Preview
To reference a style sheet across multiple HTML pages, how would you define your CSS?