10 Questions
Which CSS unit is relative to the font-size of the root element?
rem
Which CSS unit is relative to the parent element?
%
Which type of HTML element does not start on a new line and only takes up as much width as necessary?
span
Which type of HTML element starts on a new line and occupies the full width available by default?
div
What is the default display value of a block-level element?
block
CSS has several different units for expressing a length, including px, em, rem, and %
True
An inline element always starts on a new line and occupies the full width available by default
False
A block-level element creates line breaks before and after itself
False
The default font size for the root element in CSS is 12px
False
An inline element only takes up as much width as necessary
True
Test your knowledge of CSS units with this quiz designed for Computer Science students in their third semester. Brush up on your understanding of pixels, em, and rem units to excel in front-end web development. Presented by Mohammed Alozaibi, this quiz will help you master the use of different length units in CSS.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free