Full Name:
Student ID:
Which CSS property determines how elements behave when they don't fit in their container?
What is the correct definition of CSS specificity?
In the CSS box model, which of the following is applied FIRST to the element's content?
Which HTML5 semantic element would be MOST appropriate for the main content area of a webpage?
In a CSS flexbox layout, what does `flex: 1 0 auto` mean?
What is the primary purpose of CSS Grid's `grid-template-areas` property?
What's wrong with this CSS code?
.container { display: flex; flex-direction: horizontal; align-items: center; }
What issue exists in this HTML code?
<article> <h2>Article Title</h2> <p>First paragraph</p> <h1>Section Heading</h1> <p>Second paragraph</p> </article>
<article>
<h2>
<h1>
id
What would be the computed value of `width` for this element?
.box { width: 100px; min-width: 150px; max-width: 200px; }
What's problematic about this CSS media query?
@media screen and (max-width: 600px) and (min-width: 800px) { .container { width: 90%; } }
What problem exists in this CSS?
.responsive-image { max-width: 100%; max-height: auto; display: block; }
How would these elements be arranged in the browser?
<div style="display: flex; flex-direction: column-reverse; height: 300px;"> <div style="height: 100px; background: red;">A</div> <div style="height: 100px; background: blue;">B</div> <div style="height: 100px; background: green;">C</div> </div>
What will be displayed for an element with this CSS applied?
.element { position: absolute; top: 0; left: 0; width: 100px; height: 100px; background-color: blue; transform: translate(50%, 50%) rotate(45deg); }
What would this CSS produce on the webpage?
.grid-container { display: grid; grid-template-columns: 1fr 2fr 1fr; grid-gap: 10px; height: 200px; }
What will be the result of this HTML and CSS?
<div class="parent"> <div class="child">Content</div> </div>
.parent { position: relative; height: 200px; background: yellow; } .child { position: absolute; bottom: 0; right: 0; background: red; padding: 10px; }
What will this CSS selector match?
article > p:first-of-type
How would this layout behave on a narrow mobile screen?
.container { display: flex; flex-wrap: nowrap; } .box { flex: 0 0 200px; }
What would happen with this CSS if applied to a paragraph containing the text "This is important!"?
p::first-letter { font-size: 2em; float: left; padding: 4px; background-color: red; }
What would this HTML and CSS render as?
<ul class="nav"> <li>Home</li> <li>About</li> <li>Contact</li> </ul>
.nav { display: flex; list-style: none; padding: 0; } .nav li { margin-right: 10px; } li:hover { text-decoration: underline; cursor: pointer; }
Your score: 0/19