ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
8 marks · CSS appearance and positioning
Each volunteer will have their own web page that will display their photo and information about them. The wireframe design to be applied to each of these pages is shown below. 20 px Volunteer name 20 px 20 px volunteer.jpg 20 px 10 px The HTML code used to implement this design for the page for the volunteer named Max is shown below. ... <div id="leftSection"> <img src = "max.jpg"> </div> <div id="rightSection"> <h2>Max</h2> <p>.....</p> </div> During evaluation it is discovered that the implemented web page does not match this design. Complete the CSS rules below to alter the margin and padding properties of each volunteer’s web page to match the wireframe. #leftSection { width: 480px; height: 500px; float: left; } #rightSection { width: 480px; height: 500px; float: left; } The CSS rule below is contained within the stylesheet as part of the styling for the navigation bar. nav ul li { float: left; width: 250px; text‑align: center; } State the type of selector used in the code above and explain which elements it would style. The ‘Vote’ page contains a form where members vote for one volunteer to be the volunteer of the year. The HTML code for the form is shown below. <form> <h1>Register your vote for Volunteer of the Year</h1> Name:<br> <input type="text" name="name" size="50"><br> Membership Number:<br> <input type="number" name="member"><br> Email address:<br> <input type="text" name="email" size="50"><br> Member Category:<br> <input type="radio" name="category">Junior<br> <input type="radio" name="category">Adult<br> <input type="radio" name="category">Senior<br> <br> Best Volunteer<br> <select name="volunteer" multiple> <option>Max</option> <option>Daniel</option> <option>Rocco</option> </select> <br> <input type="submit" value="Vote"> </form> Usability testing of the form identified the following issues: • members could choose more than one volunteer • members would prefer to see all the volunteer names in the vote at the same time. Re‑write the line of HTML code below to correct the issues found. <select name="volunteer" multiple> When testing the website, personas and test cases are used. Describe what is meant by a persona and a test case. Persona Test case A community club is creating a website to display information about the volunteers who have been nominated for their volunteer of the year award.
• #leftSection { margin-right:10px;} • #rightSection { padding: 20px;} Accept margin-left added to #right padding:20 20 20 20; padding-left:20px; padding-top:20px; padding-right:20px; padding-bottom:20px; • descendant (selector) • used to style the unordered lists within the nav element • select element copied with multiple removed • size = "3" added <select name = "volunteer" size = "3"> Persona: • (a tester) playing the role of a typical end user Test case: • a set of actions executed (by a tester) to test a particular feature/function
Previous question: Higher Computing Science 2026 Question 18