Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Explaining why content is separated from presentation worksheet is part of the ACARA Digital Technologies Years 9–10 — Content, Structure and Presentation journey. Print it as a booklet?
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="style.css"> | AOne CSS rule that restyles every h1 on every linked page without any change to the HTML content. | |
| 2h1 { color: navy; } | BThis puts presentation inside the content, so the design cannot be changed in one place and the HTML gets harder to update. | |
| 3The same HTML content can get a different design just by swapping the stylesheet, because the content does not hold any style. | Cbody { font-family: Arial; background-color: white; } | |
| 4A whole site keeps a consistent look because every page shares one rule, so the colours and fonts always match. | D<link rel="stylesheet" href="dark.css"> | |
| 5<p style="color: red;">Sale</p> <p style="color: red;">Offer</p> | ELinks a page to one shared stylesheet, so many pages can use the same look and one CSS change updates them all. | |
| 6<font color="blue">Welcome</font> | FStyle is mixed into the content and repeated on each paragraph, so changing the colour means editing every tag instead of one CSS rule. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
separation of content and presentation — Keeping HTML content apart from CSS style means one CSS rule can restyle every page without touching the content, because the look is stored in one place.<link rel="stylesheet" href="style.css">h1 { color: navy; }<p class="note">Exam on Friday</p>.note { background-color: yellow; }h1 { color: navy; text-align: center; }