CSS Strokes Quiz

Quiz 4 7 questions

Prerequisites for the quiz

  1. CSS Strokes Unit

Are you ready?

7 questions to solve

Instructions
  1. This quiz goes to full-screen once you press the Start button.
  2. At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
How to give a solid black border of weight 1px to an element #capt?
Choice (A) has the correct sequence of parameters in border i.e stroke-weight stroke-type stroke-color See CSS Borders for more details.
How can we change the color of the top border to gold in the div element below?
A div
See CSS Borders for more details.
Borders are taken into account when getting the final dimensions of an element. True or false?
See CSS Borders for more details.
Outlines affect the final dimensions of an element. True or false?
See CSS Borders for more details.
Choose the best choice to accomplish the following result.
Some text inside a div
The div element shown has a significant amount of inner spcaing, hence it has padding set on it. This goes with choice (C). See CSS Borders for more details.
Can the following code give the result shown? If not, then how can we alter it to match with the result?
div {
    border-left: 3px solid blue;
    border: 1px solid grey;
    padding: 5px;
}

Output desired:

This is the desired output.
border-left has to come later so that it can override the left border set by border: 1px solid grey. Hence choice (B) is correct. See CSS Borders for more details.
Give all h2 elements of class title a solid outline of weight 3px and color red.
See CSS Borders for more details.

"I created Codeguage to save you from falling into the same learning conundrums that I fell into."

— Bilal Adnan, Founder of Codeguage