ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · Cascading Style Sheets
Draw how this web page will look when viewed in a browser. Some of the content has already been added. r a s C s ’ a n a i K t r The following CSS is added to the website so that the text of any additional car for auction is coloured red. .newCar{color:red;} Katrina’s Cars asks for the following car to be added to the web page. Morcodes GLS Complete the missing line of code below to add the car. <ul> <li>Maxi Cupar</li> <li>Mizdo CX-5</li> <li>Oodi TT</li> </ul> The following HTML is to be added to the website. <a href="carWeek.html">Car of the Week</a> State the purpose of adding this HTML to the website. The home page contains a logo that changes to an alternative image when the user hovers over it. The web developers have used the onmouseover and onmouseout events. State the language used to implement the above. Katrina’s Cars receives a letter claiming it is using a video that is identical to a video used by another website. State which law may have been broken. Katrina’s Cars has requested an update to its website following customer feedback. ‘We receive a lot of e-mails from our users asking us to cancel their bid on a car. This is taking up a lot of our time. Can you add a feature to do this?’ Explain why the above is an end-user requirement. Katrina’s Cars is a car auction website. The HTML and CSS code for the home page is shown below. <html> <head> <title>Katrina’s Cars</title> <style> h1{text-align:center;} h2{text-align:right;} #heading1{text-align:right;} #heading2{text-align:left;} </style> </head> <body> <div> <h1 id="heading1">Katrina’s Cars</h1> <img src="logo.jpg"> </div> <div> <h2 id="heading2">Top deals</h2> <ul> <li>Maxi Cupar</li> <li>Mizdo CX-5</li> <li>Oodi TT</li> </ul> </div> </body> </html>
One mark each for • ‘Katrina’s Cars’ above graphic and right aligned • ‘Top deals’ left-aligned and below graphic • unordered list with bullet points, left-aligned and below ‘Top deals’ • vertical list of three list items Top deals Do not award a mark if text is underlined as this is not included in the code. Do not award a mark for a bullet if the content of the bullet is repeated. Ignore discrepancies in text size. One mark each fors • newCar class used in <li> • <li> </li>with text - Morcodes GLS <li class= "newCar"> Morcodes GLS </li> adds a hyperlink Accept a description of a hyperlink JavaScript Copyright, Designs and Patents (Act) It’s a request by the user to change the website (and not a statement of what the system must do) Answer should relate to the required change to the website and not just to the scenario (cancelling a bid).