All IGCSE Information and Communication Technology videos
Preparing the video…

0417 · 21.1Web development layers

Cambridge IGCSE Information and Communication Technology (0417) · Topic 21, Website authoring · 6:43

Practise this topic

Real past-paper questions on web development layers, with their mark schemes. Free with an account.

Practise this topic

57 more Information and Communication Technology videos like this one

With a CIE Buddy account: every video in syllabus order, past-paper practice on each topic, and an AI tutor for anything unclear.

In this video

  1. 0:00Content, presentation and behaviour layers. Explains the three web development layers and how HTML, CSS and JavaScript give web pages structure, appearance and interaction.
  2. 1:50Garden Club page example. Demonstrates assigning content, CSS formatting and scripted button behaviour to the correct layer in a club web page.
  3. 3:58Layer benefits and exam practice. Summarises separation benefits, layer classification and practical exam requirements for HTML, CSS, screenshots and evidence.

Transcript: Web development layers

Content, presentation and behaviour layers

0:00A club web page contains a heading, uses blue lettering, and shows a meeting place when someone presses a button. Those features involve three different jobs. The words provide information, their appearance makes the page clearer, and the button triggers an action. Web development layers separate these responsibilities so each part is easier to manage. A web browser is a program that retrieves web pages and displays them. A page contains elements, such as headings, paragraphs, images and buttons.

0:27The browser interprets instructions that describe these elements and their appearance. Some pages also include instructions that control what happens when a user interacts with them. The three web development layers are the content layer, the presentation layer and the behaviour layer. The content layer is used to enter the content and create the structure of a web page. This includes the actual heading text and its position within the page’s organisation.

0:50Structure identifies which information forms a heading, paragraph or another element. Hypertext Markup Language, or H T M L, is the language used to describe the content and structure of web pages. Markup identifies the role of each element. For example, marking some words as a heading tells the browser that they introduce a section. That structural role remains important when the heading’s colour or size changes. The presentation layer is used to display and format elements within a web page.

1:18Cascading Style Sheets, or C S S, is the language used to specify the presentation of web pages. Formatting choices include fonts, colours and layout. These choices affect how visitors see the information, while the content layer identifies what the information is. The behaviour layer uses a scripting language to control elements within a web page. A scripting language provides instructions that a browser can execute to perform actions. JavaScript is one example used for this layer.

1:45A script can respond to a button press by displaying a message or changing an element.

Garden Club page example

1:50Consider a page for Garden Club with a heading and a short meeting announcement. The task asks for blue heading text and a pale yellow background. A separate demonstration will add a button that reveals the meeting place. We can assign each requirement to its layer before making any changes. A file is a named collection of information stored together. Our example file is called Club Page, and it is already attached to an empty stylesheet called garden dot C S S.

2:16Enter the club name as the h one heading and the meeting announcement as a paragraph. Both changes belong to the content layer because they supply information and identify its role. Open the page in a browser and check the result. The heading appears above the paragraph, and the browser gives each element a default appearance. A browser can display structured content before custom formatting is added. The heading already has its role because the content layer identifies it as a heading.

2:41An attached stylesheet is a separate file of formatting rules that is linked to a web page. Open garden dot C S S and add two rules. The first gives the body a pale yellow background colour, and the second makes the h one heading blue. Save the stylesheet, then refresh the browser’s display. Check that the words remain exactly the same while their appearance changes. This result shows the presentation layer at work.

3:06The stylesheet supplies the appearance rules, and the browser applies them to the relevant elements. The content still consists of the same heading and paragraph. Changing the colour is a presentation decision because it changes how an existing element appears. For the behaviour demonstration, add a button and a script that displays the meeting place when it is activated. The button itself is an element in the content layer. Its colours belong to presentation, while the scripted response belongs to behaviour.

3:33One visible element can therefore involve all three layers, with a different responsibility assigned to each. For this syllabus, the practical paper uses H T M L and C S S only. Understanding the behaviour layer is required, but writing scripts is outside these practical tasks. Ordinary links take visitors to another page through built-in browser behaviour. Identify the behaviour layer by the scripting instructions that control elements.

Layer benefits and exam practice

3:58Keeping the layers separate makes changes easier to control. Several pages can use one attached stylesheet, so editing one shared rule updates their appearance together. An editor can also change meeting information without changing the formatting rules. Each person can concentrate on the responsibility involved in their task. Classify a change by its purpose. Replacing a meeting announcement changes content, while adjusting its font changes presentation. A scripted response to a button press belongs to behaviour.

4:27Text, images and other elements can all form part of the content layer, because content includes more than written words. A Paper One question could ask you to state the purpose of each web development layer. The content layer is used to enter the content and create the structure of a web page. Displaying and formatting the elements within a web page is the job of the presentation layer. In the behaviour layer, a scripting language is used to control elements within a web page.

4:52Another question could ask you to explain two benefits of keeping content and presentation separate. Many pages can share one attached stylesheet, so the whole website has a consistent appearance. Editing a single rule in that stylesheet updates every linked page, which saves time when the house style changes. Content can be edited without touching the formatting rules. As a result, someone who updates the information cannot accidentally change the appearance.

5:17In a practical task, identify whether each instruction concerns page content or its presentation. Enter the required words with total accuracy, which means matching the required content character for character. Apply the requested formatting through the appropriate presentation instructions. Save your work and check the finished page in a browser after refreshing it. Marks are most often lost when formatting is put in the wrong layer. A typical example is a colour typed into the H T M L when the task asks for a rule in the stylesheet.

5:47Other marks go on text that is not copied with total accuracy. Candidates also lose marks when the stylesheet is saved but the browser is not refreshed, so the screenshot shows the old appearance. The practical papers provide source files, and internet access is unavailable. A screenshot is an image captured from all or part of a screen. Place required screenshots in the Evidence Document, and include your name, centre number and candidate number on every printout.

6:13Software brand names gain no marks; accurate content, correct formatting and clear evidence demonstrate your work. To sum up, the content layer is used to enter the content and create the structure of a web page. Alongside it, the presentation layer is used to display and format elements within a web page. Finally, the behaviour layer uses a scripting language to control elements within a web page. Together, these responsibilities explain what a page contains, how it appears and how scripted actions control its elements.