The three layers of a web page (content, presentation, behaviour), HTML structure, CSS styling, file types and the editing of images, layout, text and tables for the practical papers.
The three layers of a web page
A web page is built in three separate layers, and keeping them apart makes a site easier to maintain.
| Layer | Built with | Purpose |
|---|---|---|
| Content/structure | HTML | The text, images, tables, headings and links — what is on the page |
| Presentation | CSS | Colours, fonts, sizes, layout and spacing — how it looks |
| Behaviour | JavaScript | Interactivity — what it does when the user acts |
Storing the styling in an external CSS stylesheet (a separate .css file) means one change updates every page that links to it, giving a consistent house style.
Viewing only
This content is free to read on superexams.com and cannot be printed or downloaded.
Read the full note, free
Create a free account to read this note in full. Every free account gets 2 complete revision notes, no card needed.