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<link rel="stylesheet" href="main.css"> | AInline CSS — the style attribute applies CSS to this single element and has the highest specificity | |
| 2<p style="color: red;">Hello</p> | BTag names must be lowercase — <Style> and </Style> should be <style> and </style> | |
| 3External stylesheets are preferred — one CSS file can be shared across multiple HTML pages | CConnects an external CSS file — rel must be 'stylesheet' and href provides the file path | |
| 4<style> in <head> embeds CSS rules directly inside the HTML document | D<link rel="stylesheet" href="style.css"> | |
| 5<Style> p { color: blue; } </Style> | EThe href attribute is missing — without href the browser has no file to load | |
| 6<link rel="stylesheet"> | F<style> body { background: white; } p { color: navy; } </style> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<link> — A self-closing HTML element placed in <head> that connects an external CSS file. Its rel attribute must be "stylesheet" and href provides the file path.<style>
p { color: red; }
</style><link rel="stylesheet" href="main.css"><link rel="stylesheet" href="app.css"><link rel="stylesheet" href="style.css"><p style="color: blue;">Hello</p>