Detailed · Deep study
1The three layers
| Layer | Purpose | Example |
|---|---|---|
| content layer | used to enter the content and create the structure of a web page | HTML: headings, paragraphs, tables, images, links |
| presentation layer | used to display and format elements within a web page | CSS: fonts, colours, backgrounds, borders, layout |
| behaviour layer | a scripting language to control elements within a web page | JavaScript: pop-up messages, image sliders, form checking |
Keeping the layers separate means the style of a whole website can be changed by editing one stylesheet, and content can be updated without affecting the design.
2Exam focus
Key words: content layer; presentation layer; behaviour layer; HTML; CSS; script.
Quick self-check
Answer in your head first, then reveal.
To display and format elements of the web page (1).
HTML (1).
