ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
11 marks · CSS appearance and positioning
Part of the information page of the company’s website is shown below. The image is too close to the top left of the section element. The layout should be as below. The gaps above and to the left of the image are 10 pixels. The gap to the right is 20 pixels. Complete the appropriate CSS rule for this image. .eventimage { Pranav wants to add a new web page with a form where customers can contact his company to enquire about bookings. Customers are required to enter a contact name, email address, date of booking and the party size (max of 6). Customers will have to choose a theme from Amazon Escape, Mayan Mayhem or Aztec Anarchy. They can also provide any additional information. Draw a suitable wireframe for this form which indicates validation. The wireframe is then used to create a low‑fidelity prototype. Describe one benefit for the developer and one benefit for the client of using this low‑fidelity prototype. Developer benefit Client benefit The navigation bar for the website is as shown below. This version of the navigation bar used the code below. nav {height:35px; background-color: darkgrey} nav ul li {float:left;width:150px;text- align:center;} nav ul li a {display:block; padding:8px;} Complete the CSS rule to remove the bullet points from the navigation bar. nav ul { } Explain why the unordered list in the navigation bar will display differently from any other unordered list in the website. Pranav runs an escape room company that uses a website to promote the different themed escape rooms.
.eventimage { margin-top: 10px; margin-left: 10px ; margin-right: 20px ;} OR .eventimage { padding-top: 10px; padding -left: 10px ; padding -right: 20px ;} All 3 properties for 2 marks any 2 properties for 1 mark • submit button And • text fields with validation indicated e,g, required or use of * for contact name, email and also with text area for additional information • date with validation, for example date picker or dd/mm/yyyy or similar • numeric field with validation for party size i.e. max 6 • radio buttons/select element (drop-down) for game theme 1 mark for submit AND 1 mark for each subsequent bullet to a maximum of three. ` • developer benefit - changes based on feedback can be made by the developer before development or implementation time has been wasted • client benefit - can provide feedback on matching their requirements/fitness for purpose and suggest changes 1 mark for each bullet nav ul {list-style- type:none} • use of the descendant selector • only selects unordered lists within the nav element/doesn’t affect other unordered lists not within a nav element 1 mark for each bullet
Previous question: Higher Computing Science 2021 Question 16