Sample Questions CSS
Sample Questions CSS
cascade!
use!
important!
import!
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
/* comment */
! comment !
/* comment
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
rgb(10, 0, 0)
rgb(1000, 0, 0)
rgb(255, 0, 0)
rgb(0, 255, 0)
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
What is the hue associated with the color value hsl(90, 100%, 50%)?
90
100%
50%
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
What is the HSL color value for red displayed with the highest saturation and lightness and with 50%
transparency?
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
Which of the following matches the color blue?
rgb(0, 0, 255)
rgba(0, 0, 255, 1)
Which of the following selectors is used to match only paragraphs that are children of the aside
element?
aside p
aside > p
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
For the following style rules, what is the font size of the h1 heading in pixels?
12px;
18px;
18.25px;
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
Provide a style rule to remove underlining from hypertext links marked with the <a> tag and nested
within a navigation list.
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
Provide an @font-face rule to create a web font named Cantarell based on the font file cantarell.woff
and cantarell.ttf.
i. @font-face {
font-family: Cantarell;
iii. Cantarell {
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
Which of the following provides a style rule to display all blockquote elements belonging to the Reviews
class in italic and indented 3em?
font-style: italic;
indent: 3em;
ii. blockquote#Reviews {
font-style: italic;
indent: 3em;
iii. blockquote.Reviews {
font-style: italic;
text-indent: 3em;
iv. blockquote#Reviews {
italic: true;
indent: 3em;
-------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
Which of the following style rules will center the text of all h1 through h6 headings with the text
displayed at normal weight?
i. h1 - h6 {
text-align: center;
weight: normal;
align: center;
weight: normal;
text-align: center;
font-weight: normal;
iv. h1 - h6 {
text-align: center;
font-weight: normal;