Project brief · after lesson 2: Why keep them apart
A club has one page of information and wants it to look different for the website and for a printed noticeboard, without rewriting the page.
Make a small page about something you know well, with a heading, paragraphs and a list. Give it one look using CSS. Then give the same page a second look by changing only the CSS. Explain what each layer did.
Steps along the way
Tick each one when it is done.
- The HTML uses a heading, paragraphs and a list, and no styling.
- The CSS gives the page a look by targeting tags or classes.
- The second look changes only the CSS, and the HTML is exactly the same.
- Your table and explanation are complete.
Hand in
- Your page's HTML, the CSS for each look, and a screenshot of the page with each look.
- A table sorting at least six things from your page into content, structure and presentation.
- An explanation of one tag in your HTML and one rule in your CSS: what each one does that the other does not.
- A sentence or two on why separating the layers helped when you made the second look.
Show that you can
Your work and your explanation should show each of these.
The three layers of a web document
- Correctly assigns specific examples (e.g. heading text, <h1> tag, font-size rule) to the correct layer
- Does not confuse structural tags with visual appearance
Representing documents with HTML and CSS
- HTML file uses structural tags correctly (headings, paragraphs, at minimum)
- CSS rule targets an HTML element or class and changes its presentation
- Student can explain what the HTML tag does versus what the CSS rule does
Why separation matters
- Explains at least one concrete benefit of separation with a specific example
- Connects the benefit to a real consequence (e.g. changing one CSS file updates many pages)
Make it yours
- A third look that reads well on a phone.
- A look that uses a different layout, not just different colours.
- Show what the page is like with no CSS at all, and explain why it still works.