Website authoring: HTML and the content layer Cambridge IGCSE Information & Communication Technology revision
Not started
Learn it
In plain words
A web page is built in three layers, each with its own language and its own job: what is there, what it looks like, and what it does. HTML is the first layer, and everything else hangs on it.
8 things to know
- The content layer holds the content and structure of a page, and is written in HTML. The presentation layer controls how the page looks, and is written in CSS. The behaviour layer makes the page respond to the user, and is written in a scripting language.
- An HTML page has a head section and a body section. The head holds information about the page: its title, shown in the browser tab; links to stylesheets; and metatags. The body holds the content shown in the browser.
- Metatags give the character set, a description of the page, keywords for search engines, the author, and the viewport, which makes the page display properly on all devices.
- Text tags: h1, h2 and h3 for headings, p for a paragraph, and li for each item of a list. An ordered list (ol) is numbered and an unordered list (ul) is bulleted.
- A table is built from table rows (tr), table header cells (th) and table data cells (td). Tables are used to structure where items appear on the page. A cell can span several columns or rows.
- An image needs its source file and alternative text, which is shown if the image cannot load and read out by screen readers. The div tag groups content so that styles can be applied to it.
- A hyperlink can lead to another page of the site, to another website, to an email address, or to a bookmark: a named place in a page, created with an id attribute. A link can open in the same window or a new one.
- A relative file path gives the location of a file from the current page, such as images/logo.png. An absolute file path gives the full location on one computer. Absolute paths must not be used for local files, because they will not work when the site is moved to a web server.
Worked example
A web page shows a logo when tested on the designer's computer, but not once it is uploaded. The image's path begins with C:\Users. Explain the problem and the fix.
- The page uses an absolute file path, which points to a folder on the designer's own computer.
- That folder does not exist on the web server, so the image cannot be found.
- Replace it with a relative file path, such as images/logo.png, and upload the image with the page.
Tips and tricks
- Head: about the page. Body: on the page. The title tag is in the head, even though you see the title in the browser tab.
- Content, presentation, behaviour: HTML, CSS, scripting. Learn the three pairs.
It lands in your notebook with its questions as flashcards.
Website authoring: HTML and the content layer: 6 questions and answers
These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.
Which layer of a web page is created with HTML?
HTML gives the page its content and structure.
Which layer uses a scripting language?
It makes the page respond to the user.
In which section of a web page is the page title placed?
It appears in the browser's tab, not on the page.
What is the purpose of alternative text on an image?
Screen readers read it aloud.
Which tag creates a table data cell?
tr is a row and th is a header cell.
Why should an absolute file path not be used for a stylesheet stored with the web page?
The path points to a place that exists on one computer only.
Quiz
6 questions
Tap an answer and you’ll see straight away whether it’s right, and why.
Worksheet
3 questions, 7 marks. Write your answers on paper, then check them.
Website authoring: HTML and the content layer
Cambridge IGCSE Information & Communication Technology 0417 · 7 marks · papermunch.org
Name ______________________________ Date ______________
Name the three web development layers and state the purpose of each.[3]
Show answerHide answer
The content layer holds the content and structure of the page. The presentation layer controls the appearance and formatting. The behaviour layer controls how elements respond, using a scripting language.
Explain why relative file paths, not absolute ones, should be used for images on a web page.[2]
Show answerHide answer
An absolute path points to a location on one particular computer. When the page is uploaded to a web server, that location does not exist, so the image is not found.
State two items that are placed in the head section of a web page.[2]
Show answerHide answer
The page title. A link to an external stylesheet. (Also: metatags.)
Answers: Website authoring: HTML and the content layer
- 1. The content layer holds the content and structure of the page. The presentation layer controls the appearance and formatting. The behaviour layer controls how elements respond, using a scripting language.
- 2. An absolute path points to a location on one particular computer. When the page is uploaded to a web server, that location does not exist, so the image is not found.
- 3. The page title. A link to an external stylesheet. (Also: metatags.)



