Question 1 Report
The diagram shows the folder plan for a museum's online exhibition about local radio. A student has created the main document, but the image does not appear when the page is opened in a browser. The image file is stored in the images folder. The student must keep the website organised so that another editor can resave the document and update it later. The exhibition page includes a caption, an audio link and a logo. Only copyright-cleared images may be added to the site.
(a) Identify the relative file path needed to display valve-radio.jpg in index.html. [2]
(b) Create an HTML image element that uses this file path, gives the image the alternative text 1950s valve radio, and sets a width of 360 pixels. [4]
(a) Since index.html is in the main website folder and the image is inside the images subfolder, the relative file path is:
images/valve-radio.jpgThe slash means “inside this folder”, not a location elsewhere on the computer. [2]
(b) A complete image element is:
<img src="images/valve-radio.jpg" alt="1950s valve radio" width="360">src locates the image, alt provides useful text if it cannot be seen, and width="360" sets the displayed width to 360 pixels. [4]
Everything you need to excel in your exams