Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<div class="card"> <p>Card content.</p> </div> | AClosing tags must not contain attributes - the closing tag should simply be </div> | |
| 2<div class="grid"> <div class="cell">A</div> <div class="cell">B</div> </div> | B<div id="sidebar"> <p>Side content.</p> </div> | |
| 3<div> is a block-level container with no built-in styling - all appearance comes from CSS | CA styled block container - <div> groups the paragraph and CSS can target .card to add borders, padding, or colour | |
| 4class and id on <div> give CSS a target to apply styles to that block | D<div class="hero"> <h1>Welcome</h1> <p>Intro text.</p> </div> | |
| 5<DIV class="card"> <p>Text.</p> </DIV> | EA grid layout pattern - nested divs with shared class names group repeating layout units like cells or cards | |
| 6<div class="row"> </div class="row"> | FTag names must be lowercase - <DIV> and </DIV> should be written as <div> and </div> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<div> — A generic block-level container element with no built-in styling. Used to group content so CSS can target and style sections of a page.<div class="card">
<p>Content.</p>
</div><div class="hero">
<h1>Welcome</h1>
</div><div class="box">
<p>Text here.</p>
</div><div class="outer">
<div class="inner">
</div>
</div><div id="main-content">
<p>Main area.</p>
</div>