Question Simulator

IGCSE ICT (0417)

Website authoring

4 questions · about 2% of the marks we indexed · examined in 3 of 9 sessions.

Questions by year

2026

  • 2026 May/June · Paper 12 · Q5 (a, b)6 marksWeb development layers and HTML

2025

  • 2025 Oct/Nov · Paper 12 · Q12 marksWeb development layers and HTML
  • 2025 Oct/Nov · Paper 12 · Q93 marksWeb development layers and HTML

2023

  • 2023 May/June · Paper 12 · Q10 (a, b)4 marksWeb development layers and HTML

References only, not question text. Open Official paper ↗ where Cambridge publishes the paper, or see the official Cambridge past-papers page; for other papers, ask your school. “Paper 42” means Paper 4, variant 2.

Practice questions

Original questions written by HomiLabs in the style of the exam, with answers and mark schemes. They are not Cambridge past paper questions and have not been reviewed by Cambridge. Try each one before opening the answer.

Q1Web development layers and HTML · Core · Paper 1 style · 6 marks
  1. (a) Name the three layers used in web development. [3]
  2. (b) State which layer each of these belongs to: (i) a CSS file that sets the font colour of headings; (ii) a script that checks a form has been filled in before it is sent; (iii) the HTML table that holds the page text. [3]
Show answer
  1. (a) Content layer, presentation layer, behaviour layer.
    1 mark each.
  2. (b) (i) presentation; (ii) behaviour; (iii) content.
    1 mark each.
Q2Web development layers and HTML · Core · Paper 1 style · 4 marks
  1. (a) State the purpose of the head section and the body section of a web page. [2]
  2. (b) Give two items that are placed in the head section. [2]
Show answer
  1. (a) The head contains information about the page that is not displayed in the page itself, such as the title, metatags and links to stylesheets; the body contains the content shown in the browser window, such as text, images, tables and links.
    1 mark: head – page information/metadata/title/stylesheet links not displayed in the page. 1 mark: body – the visible content.
  2. (b) The page title; the link to an external stylesheet.
    1 mark each for any two of: title | meta tags (charset, keywords, description, author, viewport) | link to external CSS | internal <style> | base target | scripts.
Q3Web development layers and HTML · Core · Paper 1 style · 4 marks
  1. (a) State what each of these HTML elements is used for: <tr>, <td>, <th>. [3]
  2. (b) State what the attribute colspan="2" does to a table cell. [1]
Show answer
  1. (a) <tr> defines a table row; <td> defines a table data cell; <th> defines a table header cell (bold and centred by default).
    1 mark each.
  2. (b) It makes the cell stretch across (merge) two columns.
    B1.
Q4Web development layers and HTML · Core · Paper 3 style · 4 marks

You are creating a web page for a hiking club in Gilgit. The stylesheet hike.css is in the same folder as the page.

  1. (a) Write the HTML to attach the stylesheet hike.css to the page. [2]
  2. (b) State where in the HTML document this line must be placed. [1]
  3. (c) Write the HTML to make the page title, shown in the browser tab, 'Gilgit Hikers'. [1]
Show answer
  1. (a) <link rel="stylesheet" href="hike.css">
    1 mark: <link rel="stylesheet" …>. 1 mark: href="hike.css" (relative path, exact file name).
  2. (b) In the head section (between <head> and </head>).
    B1.
  3. (c) <title>Gilgit Hikers</title>
    B1 exact text, in head.
Q5Web development layers and HTML · Core · Paper 3 style · 5 marks
  1. (a) Write the HTML for a hyperlink with the text 'Email us' that opens an email to info@hikersclub.org with the subject 'Membership'. [3]
  2. (b) Write the HTML for a hyperlink with the text 'Route map' that opens the local file routes.html in a new window or tab. [2]
Show answer
  1. (a) <a href="mailto:info@hikersclub.org?subject=Membership">Email us</a>
    1 mark: mailto: with correct address. 1 mark: ?subject=Membership. 1 mark: anchor text Email us and closing </a>.
  2. (b) <a href="routes.html" target="_blank">Route map</a>
    1 mark: href="routes.html". 1 mark: target="_blank".
Q6Web development layers and HTML · Core · Paper 3 style · 4 marks

An image file falcon.jpg is stored in a folder called images, inside the folder that holds the web page.

  1. (a) Write the HTML to place this image on the page with the alternative text 'Peregrine falcon' and a width of 300 pixels, keeping its aspect ratio. [3]
  2. (b) Explain why the path images/falcon.jpg is used rather than C:\Users\Sara\website\images\falcon.jpg. [1]
Show answer
  1. (a) <img src="images/falcon.jpg" alt="Peregrine falcon" width="300">
    1 mark: src="images/falcon.jpg" (relative path). 1 mark: alt="Peregrine falcon". 1 mark: width="300" only (height omitted so aspect ratio is kept, or correct calculated height).
  2. (b) The relative path still works when the website is uploaded to a web server; the C: path only exists on the developer's computer.
    B1.
Q7Web development layers and HTML · Core · Paper 3 style · 4 marks
  1. (a) Write the CSS rule to set the background colour of the whole page to light yellow #FFFFE0. [2]
  2. (b) Write the CSS rule that makes all paragraphs 12 pt and fully justified. [2]
Show answer
  1. (a) body { background-color: #FFFFE0; }
    1 mark: body selector. 1 mark: background-color: #FFFFE0;
  2. (b) p { font-size: 12pt; text-align: justify; }
    1 mark each property.
Q8Web development layers and HTML · Core · Paper 3 style · 3 marks

A stylesheet called museum.css contains the rule h1 { color: red; font-size: 24px }.

  1. (a) Identify the punctuation error in this rule and rewrite the rule correctly, giving the colour as the hex code for pure red. [2]
  2. (b) Write a CSS comment containing the text 'Heading styles'. [1]
Show answer
  1. (a) The final declaration has no semicolon after 24px. Corrected rule: h1 { color: #FF0000; font-size: 24px; }
    1 mark: missing semicolon after 24px identified. 1 mark: rewritten rule with color: #FF0000; and both semicolons.
  2. (b) /* Heading styles */
    B1.
Q9Web development layers and HTML · Core · Paper 3 style · 4 marks

A student must add a sound file called school_bell.mp3 (in the same folder as the page) with controls so that visitors can play it.

  1. (a) Write the HTML to add the sound with controls. [3]
  2. (b) State why the controls attribute is needed. [1]
Show answer
  1. (a) <audio controls> <source src="school_bell.mp3" type="audio/mpeg"></audio>
    1 mark: <audio> … </audio>. 1 mark: controls attribute. 1 mark: source with src="school_bell.mp3" (accept src on the audio element).
  2. (b) Without it no play/pause buttons are shown, so visitors could not start the sound.
    B1.
Q10Web development layers and HTML · Core · Paper 3 style · 5 marks

A web page for a plant nursery in Multan is being prepared for search engines.

  1. (a) Write the meta tag that sets the keywords to: plants, nursery, Multan, gardening. [2]
  2. (b) Write the meta tag that gives the author as Green Leaf Nursery. [1]
  3. (c) Write the meta tag that makes the page fit the width of the device it is viewed on. [2]
Show answer
  1. (a) <meta name="keywords" content="plants, nursery, Multan, gardening">
    1 mark: name="keywords". 1 mark: content with the four words exactly.
  2. (b) <meta name="author" content="Green Leaf Nursery">
    B1.
  3. (c) <meta name="viewport" content="width=device-width, initial-scale=1.0">
    1 mark: name="viewport". 1 mark: content="width=device-width…" (initial-scale optional).
Q11Web development layers and HTML · Standard · Paper 1 style · 5 marks
  1. (a) Describe the purpose of each of these metatags: (i) description (ii) keywords (iii) author (iv) viewport. [4]
  2. (b) State the purpose of the meta tag <meta charset="UTF-8">. [1]
Show answer
  1. (a) (i) Gives a short summary of the page, which search engines may display in their results. (ii) Lists words that describe the page so search engines can match it to searches. (iii) Gives the name of the person who created the page. (iv) Tells the browser how to scale and size the page to fit the width of the device, so it displays correctly on phones and tablets.
    1 mark for each correct purpose.
  2. (b) It tells the browser which character set to use so that text, including special characters, is displayed correctly.
    B1.
Q12Web development layers and HTML · Standard · Paper 1 style · 5 marks
  1. (a) Explain why the presentation layer should be kept separate from the content layer by using an external stylesheet. [4]
  2. (b) Explain why the <link> to an external stylesheet is placed in the head section. [1]
Show answer
  1. (a) One stylesheet can be attached to every page, so all pages look consistent; changing one rule in the stylesheet updates every page at once; the HTML files are smaller and easier to read and edit because they contain only content; and different stylesheets can be used for different devices or for printing without changing the content.
    1 mark each for any four of: consistency across pages/house style | change once – updates all pages | saves time when restyling | HTML simpler/shorter/easier to maintain | faster loading – CSS cached once | different styles for different devices/print | developers and designers can work separately.
  2. (b) The link is information about the page rather than content to display, so it belongs in the head; the head is read before the body is shown, so the styles are ready and the page is displayed correctly formatted from the start.
    B1: head holds information about the page/resources, not displayed content | loaded before the body so styles are applied when the page is shown.
Q13Web development layers and HTML · Standard · Paper 1 style · 5 marks

A web page contains the hyperlink <a href="https://www.example.org/news/sports.html" target="_blank">Sports news</a>.

  1. (a) Describe what happens when a user clicks the words Sports news. [2]
  2. (b) Explain the difference between an absolute file path and a relative file path, and why relative paths are used for files within the same website. [3]
Show answer
  1. (a) The browser opens the page sports.html from the news folder on www.example.org, and it opens in a new window or tab because of target="_blank".
    1 mark: opens the sports.html page at that address. 1 mark: in a new tab/window.
  2. (b) An absolute path gives the full location from the root (e.g. a full URL or a drive letter on the developer's computer); a relative path gives the location relative to the current page (e.g. images/logo.png). Relative paths keep working when the whole website is uploaded to a server or moved to another folder, whereas absolute local paths (such as C:\Users\...) would break.
    1 mark: absolute – full path from root/drive/URL. 1 mark: relative – from the location of the current file. 1 mark: relative paths still work when the site is moved/uploaded; absolute local paths break.
Q14Web development layers and HTML · Standard · Paper 1 style · 4 marks

A student describes the behaviour layer as 'the layer that makes the website look nice'.

  1. (a) Explain why the student is wrong and describe what the behaviour layer does. [3]
  2. (b) Give one reason why behaviour scripts are often kept in separate files. [1]
Show answer
  1. (a) Making the page look nice is the job of the presentation layer (CSS). The behaviour layer uses a scripting language (such as JavaScript) to make the page interactive – for example responding to button clicks, validating form entries or showing and hiding content.
    1 mark: appearance is the presentation layer / CSS. 1 mark: behaviour layer uses scripts/scripting language. 1 mark: example of interactivity (validation, pop-ups, menus, responding to events).
  2. (b) The same script file can be used by many pages and changed in one place, keeping the HTML content simple.
    B1: reuse across pages | easier maintenance | content layer kept clean | cached by browser.
Q15Web development layers and HTML · Standard · Paper 3 style · 6 marks

A photograph of Badshahi Mosque, mosque.png, is 1600 pixels wide and 1200 pixels high.

  1. (a) The image must be displayed 480 pixels wide with its aspect ratio maintained. Calculate the height in pixels. [2]
  2. (b) Write the HTML to display the image at this size with alternative text 'Badshahi Mosque, Lahore'. [2]
  3. (c) Explain why the image should also be resized in image-editing software before it is uploaded. [2]
Show answer
  1. (a) 360 pixels
    M1 480 ÷ 1600 = 0.3 (or 1200 × 480 ÷ 1600); A1 360.
  2. (b) <img src="mosque.png" alt="Badshahi Mosque, Lahore" width="480" height="360">
    1 mark: src and alt correct. 1 mark: width 480 and height 360.
  3. (c) Setting width and height in HTML only changes how it is displayed; the full 1600 × 1200 file is still downloaded, so resizing the file itself reduces file size and makes the page load faster.
    1 mark: HTML resizing does not reduce the file size. 1 mark: smaller file loads faster / uses less bandwidth.
Q16Web development layers and HTML · Standard · Paper 3 style · 6 marks

A table must have this structure: row 1 has one cell spanning all three columns, containing the heading 'Exam Timetable'; row 2 has three header cells: Subject, Date, Time; row 3 has three data cells: Physics, 12 May, 09:00.

  1. (a) Write the HTML for this table. [5]
  2. (b) State how a th cell normally appears differently from a td cell when no CSS is applied. [1]
Show answer
  1. (a) <table><tr><td colspan="3">Exam Timetable</td></tr><tr><th>Subject</th><th>Date</th><th>Time</th></tr><tr><td>Physics</td><td>12 May</td><td>09:00</td></tr></table>
    1 mark: <table> … </table>. 1 mark: three <tr> rows correctly closed. 1 mark: colspan="3" on the first cell. 1 mark: three <th> cells in row 2. 1 mark: three <td> data cells in row 3 with exact text. (Accept <th colspan="3"> in row 1.)
  2. (b) Text in a th (table header) cell is displayed bold and centred; text in a td cell is normal weight and left aligned.
    B1: th bold and centred (td plain, left aligned).
Q17Web development layers and HTML · Standard · Paper 3 style · 6 marks
  1. (a) Write a CSS rule that makes all h2 headings: dark blue (#00008B), a sans-serif font with Arial as the first choice, 18 pt, centre aligned and italic. [5]
  2. (b) Explain why a generic font family such as sans-serif is added at the end of the font-family list. [1]
Show answer
  1. (a) h2 { color: #00008B; font-family: Arial, sans-serif; font-size: 18pt; text-align: center; font-style: italic;}
    1 mark each: color: #00008B | font-family: Arial, sans-serif (generic fallback last) | font-size: 18pt | text-align: center | font-style: italic. Selector h2 and braces required for full marks.
  2. (b) If the computer does not have Arial installed, the browser uses its default sans-serif font instead, so the style is still close to what was intended.
    B1.
Q18Web development layers and HTML · Standard · Paper 3 style · 6 marks

A stylesheet contains:body { background-color: #FFFFFF; font-family: Georgia, serif; }.note { color: #8B0000; font-weight: bold; }table { border-collapse: collapse; width: 90%; }td { border: 1px solid #333333; padding: 6px; }

  1. (a) Write the HTML to make the paragraph 'Bring water and a hat.' use the note class. [2]
  2. (b) Describe how the table cells will appear. [3]
  3. (c) State what the font of the body text will be if Georgia is not available. [1]
Show answer
  1. (a) <p class="note">Bring water and a hat.</p>
    1 mark: class="note" (no dot). 1 mark: correct p element and exact text.
  2. (b) Each cell has a solid dark grey border 1 pixel wide; there are 6 pixels of space between the cell's text and its border; adjacent borders are merged into single lines, and the table is 90% of the width of the page.
    1 mark each for any three of: 1 px solid border | colour #333333 dark grey | 6 px padding inside cells | collapsed (single) borders | table width 90% of the window/container.
  3. (c) The browser's default serif font.
    B1.
Q19Web development layers and HTML · Standard · Paper 3 style · 6 marks

A page for a book club has the following content in the body:<h1>Monthly Picks</h1><h2>Fiction</h2><p>Three new novels this month.</p><h2>Non-fiction</h2><p>Two biographies.</p>

  1. (a) Write the HTML to add an unordered (bulleted) list after the first paragraph containing the items 'The Lantern Bearers', 'River of Stars' and 'Salt and Sand'. [3]
  2. (b) State the change needed to make it a numbered list. [1]
  3. (c) State why the developer used h1 and h2 instead of making p text bold and larger. [2]
Show answer
  1. (a) <ul><li>The Lantern Bearers</li><li>River of Stars</li><li>Salt and Sand</li></ul>
    1 mark: <ul> … </ul>. 1 mark: each item in <li> … </li>. 1 mark: exact text and placed after the first </p>.
  2. (b) Change <ul> and </ul> to <ol> and </ol>.
    B1.
  3. (c) Heading elements show the structure of the page (main heading and sub-headings), which helps search engines and screen readers, and they can be styled consistently in the stylesheet.
    1 mark each for any two of: shows page structure/hierarchy | accessibility for screen readers | search engines | consistent styling via CSS.
Q20Web development layers and HTML · Standard · Paper 3 style · 4 marks

The colour for headings on a web page is set as color: #2E8B57;

  1. (a) State the red, green and blue values (0–255) of this colour. [3]
  2. (b) Write the hex code for a colour with red 255, green 165, blue 0. [1]
Show answer
  1. (a) Red 46, green 139, blue 87.
    1 mark each: 2E = 2×16 + 14 = 46; 8B = 8×16 + 11 = 139; 57 = 5×16 + 7 = 87.
  2. (b) #FFA500
    B1.
Q21Web development layers and HTML · Standard · Paper 3 style · 5 marks
  1. (a) Write the HTML for a level 3 heading containing the text 'Opening Hours'. [1]
  2. (b) Write the HTML to make the words 'Back to top' a link to an element on the same page with the id top. [2]
  3. (c) Write the HTML so that all links on the page open in a new tab by default, and state where it must go. [2]
Show answer
  1. (a) <h3>Opening Hours</h3>
    B1.
  2. (b) <a href="#top">Back to top</a>
    1 mark: href="#top". 1 mark: correct anchor element and text.
  3. (c) <base target="_blank"> placed in the head section.
    1 mark: <base target="_blank">. 1 mark: in the head.
Q22Web development layers and HTML · Challenge · Paper 1 style · 5 marks
  1. (a) A web page has an external stylesheet that sets h1 { color: #000080; }, an internal style in the head that sets h1 { color: #008000; } (placed after the link to the external stylesheet), and one heading written as <h1 style="color: #800000;">Results</h1>. State the colour in which the heading Results is displayed and explain why. [3]
  2. (b) State the colour of a second h1 heading on the page that has no inline style, and explain why. [2]
Show answer
  1. (a) #800000 (maroon / dark red). Inline styles take priority over both internal and external styles, so the inline colour is used even though the internal style would normally override the external one.
    1 mark: #800000. 1 mark: inline style has highest priority. 1 mark: internal (later) style would override external for other h1 headings.
  2. (b) #008000 (green) – the internal style is read after the external stylesheet, so it overrides the external rule.
    1 mark: #008000. 1 mark: later/internal rule overrides the external stylesheet.
Q23Web development layers and HTML · Challenge · Paper 1 style · 5 marks
  1. (a) Explain the purpose of a bookmark (anchor) on a web page and describe how to create a link to one. [3]
  2. (b) Explain why a web developer should give every image an alt attribute. [2]
Show answer
  1. (a) A bookmark marks a particular position on a page so that a link can take the user straight to it, e.g. to a section further down a long page. Give the target element an id, e.g. <h2 id="fees">Fees</h2>, and create a link with a hash before the id: <a href="#fees">Go to fees</a>.
    1 mark: purpose – jump to a specific point on a (long) page. 1 mark: set an id on the target element. 1 mark: link uses href="#id".
  2. (b) The alt text is displayed if the image cannot load and is read aloud by screen readers for visually impaired users; it also helps search engines understand the image.
    1 mark each for any two of: shown if image fails to load | accessibility – screen readers | search engines index it | describes the image's purpose.
Q24Web development layers and HTML · Challenge · Paper 1 style · 4 marks
  1. (a) Compare a CSS class with an inline style for formatting part of a web page. [4]
Show answer
  1. (a) Both change the appearance of elements. A class is defined once in a stylesheet (e.g. .warning { color: #FF0000; }) and can be applied to many elements with class="warning", so changing the class definition updates all of them; an inline style is written inside one element's tag with the style attribute and affects only that element. Inline styles override class rules, but they mix presentation with content and are harder to maintain.
    1 mark for a similarity (both apply formatting/CSS properties). Up to 3 for differences: class defined once and reused vs inline applies to one element | class in stylesheet vs style attribute in tag | changing class updates all vs edit each inline style | inline has higher priority | class keeps content and presentation separate.
Q25Web development layers and HTML · Challenge · Paper 3 style · 6 marks

A web page for a science museum in Karachi uses a table that is 800 pixels wide with 4 columns. The first column must be 20% of the table width and the other three columns must share the remaining width equally.

  1. (a) Calculate the width in pixels of the first column and of each other column. Give the width of each other column correct to 1 decimal place. [2]
  2. (b) Write the CSS rule to make every table on the page 800 pixels wide with a 2-pixel dashed green (#006400) border. [3]
  3. (c) Explain why a width of 100% may be better than 800 pixels for visitors using phones. [1]
Show answer
  1. (a) First column 160 px; each other column 213.3 px.
    M1 800 × 0.20 = 160; A1 (800 − 160) ÷ 3 = 213.33… = 213.3 px.
  2. (b) table { width: 800px; border: 2px dashed #006400; }
    1 mark: width: 800px. 1 mark: border width 2px and style dashed. 1 mark: colour #006400. Accept separate border-width/border-style/border-color properties.
  3. (c) A percentage width scales to fit the screen, whereas an 800-pixel table is wider than most phone screens and forces sideways scrolling.
    B1.
Q26Web development layers and HTML · Challenge · Paper 3 style · 6 marks

A web page must show a video file called tour.mp4, stored in a folder called media, 640 pixels wide with playback controls. If the browser cannot play the video, the text 'Your browser does not support this video.' must be shown.

  1. (a) Write the HTML to place the video. [5]
  2. (b) Explain why the attribute autoplay is often avoided on web pages. [1]
Show answer
  1. (a) <video width="640" controls> <source src="media/tour.mp4" type="video/mp4"> Your browser does not support this video.</video>
    1 mark: <video> … </video>. 1 mark: width="640". 1 mark: controls attribute. 1 mark: <source src="media/tour.mp4" type="video/mp4"> (or src on video element). 1 mark: fallback text inside the video element before </video>.
  2. (b) Video that starts playing by itself can annoy or startle users and uses their data without permission (browsers often block it with sound).
    B1.
Q27Web development layers and HTML · Challenge · Paper 3 style · 7 marks

A table is required with this structure (3 columns):Row 1: a cell 'Logo' that spans 2 rows in column 1; a cell 'Karachi Science Museum' spanning columns 2 and 3.Row 2: cells 'Open daily' (column 2) and '09:00–18:00' (column 3).Row 3: a single cell 'Tickets: Rs 500' spanning all 3 columns.

  1. (a) Write the HTML for this table. [6]
  2. (b) Explain why row 2 contains only two td elements even though the table has three columns. [1]
Show answer
  1. (a) <table><tr><td rowspan="2">Logo</td><td colspan="2">Karachi Science Museum</td></tr><tr><td>Open daily</td><td>09:00–18:00</td></tr><tr><td colspan="3">Tickets: Rs 500</td></tr></table>
    1 mark: table and three rows. 1 mark: rowspan="2" on Logo. 1 mark: colspan="2" on the museum name. 1 mark: row 2 has only two cells (no cell for column 1). 1 mark: colspan="3" in row 3. 1 mark: all text exactly as given.
  2. (b) Column 1 of row 2 is already filled by the Logo cell, which spans down from row 1.
    B1.
Q28Web development layers and HTML · Challenge · Paper 3 style · 6 marks

The head of a web page contains:<link rel="stylesheet" href="main.css"><link rel="stylesheet" href="summer.css">main.css contains: p { color: #000000; font-size: 11pt; }summer.css contains: p { color: #FF4500; }One paragraph is written as <p style="font-size: 14pt;">Summer sale now on.</p>

  1. (a) State the colour and font size of the paragraph 'Summer sale now on.' and explain your answer. [4]
  2. (b) State the colour and size of another paragraph with no inline style. [2]
Show answer
  1. (a) Colour #FF4500 and font size 14 pt. summer.css is attached after main.css, so its colour rule overrides main.css; summer.css has no font-size, so it would be 11 pt from main.css, but the inline style sets 14 pt, which has the highest priority.
    1 mark: #FF4500. 1 mark: later stylesheet overrides earlier. 1 mark: 14pt. 1 mark: inline style overrides both stylesheets.
  2. (b) #FF4500, 11 pt.
    1 mark each.
Q29Web development layers and HTML · Challenge · Paper 3 style · 6 marks

A developer writes this rule in a stylesheet: .highlight { background-color: #FFFF00; padding: 4px; } and wants to apply it to one table cell and to one paragraph.

  1. (a) Write the HTML for a table cell containing 'Rs 1,200' and a paragraph containing 'Offer ends Friday', both using the class. [2]
  2. (b) Explain the difference between padding and margin. [2]
  3. (c) The developer accidentally writes the class in HTML as class=".highlight". Explain the effect. [2]
Show answer
  1. (a) <td class="highlight">Rs 1,200</td> and <p class="highlight">Offer ends Friday</p>
    1 mark each.
  2. (b) Padding is the space between an element's content and its border (inside the border); margin is the space outside the border, between the element and neighbouring elements.
    1 mark each.
  3. (c) The dot is only used in the CSS selector; in the HTML the class name becomes '.highlight', which does not match the rule, so no highlight style is applied.
    1 mark: dot should not be included in the HTML attribute. 1 mark: class does not match, so style not applied.
Q30Web development layers and HTML · Challenge · Paper 3 style · 8 marks

A web page for a school robotics competition must be built from a single table that is 100% of the window width. Row 1 holds a logo image (left) and the page title (right). Row 2 has a single cell spanning both columns containing a 30-second video. Row 3 has two cells: a list of rules (left) and a hyperlink to the registration form register.html (right), which opens in a new tab.

  1. (a) Write the HTML for the table. Use logo.png for the logo (alternative text 'Robotics logo', width 150), the title 'Robotics Challenge 2026' as a level 1 heading, the video robots.mp4 with controls and width 600, rules as an ordered list with the items 'Teams of 3' and 'Robots under 2 kg', and the link text 'Register here'. [8]
Show answer
  1. (a) <table style="width:100%"><tr><td><img src="logo.png" alt="Robotics logo" width="150"></td><td><h1>Robotics Challenge 2026</h1></td></tr><tr><td colspan="2"><video width="600" controls><source src="robots.mp4" type="video/mp4">Your browser does not support video.</video></td></tr><tr><td><ol><li>Teams of 3</li><li>Robots under 2 kg</li></ol></td><td><a href="register.html" target="_blank">Register here</a></td></tr></table>
    1 mark: table with width 100% (inline style or CSS). 1 mark: three rows correctly structured. 1 mark: img with src, alt and width correct. 1 mark: h1 with exact title. 1 mark: colspan="2" on row 2 cell. 1 mark: video with width 600, controls, correct source. 1 mark: ol with two li items, exact text. 1 mark: link href="register.html" target="_blank" with text Register here.

Similar questions

Questions that test the same subtopic in different years, grouped so you can work on one skill at a time.

References only: find each question in its paper (official link where available, otherwise through your school).

Web development layers and HTML 4 questions · 3/9 sessions

Subtopics

Our analysis of how often each subtopic was examined and how many marks it carried, 2022 to May/June 2026.

SubtopicMarks indexedSessions
Web development layers and HTML 153/9

← All ICT topics