ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
12 marks · CSS appearance and positioning
The wireframe for one of the web pages is shown below. The ‘Trial Flying Lessons’ and the ‘Flight Simulator’ sections should be displayed side by side and the ‘Gift Vouchers’ section displayed underneath. logo.jpg plane.jpg Home Contact Us Each of these sections should be 385px × 200px in size and have a 10px gap between them. Trial Flying Lessons Flight Simulator simulator1 trial1.jpg .jpg 10px Gift Vouchers voucher1.jpg This section should be 790px × 120px in size and have a 10px gap between it and the two sections above. ©Monty’s Flying School Monty’s Flying School About Lessons Complete the CSS code to allow all three sections to be displayed as shown in the wireframe. #trialFlyingLessons, #flightSimulator {width : 385px ; height : 200px; float:left;} #flightSimulator { } #giftVouchers{ } The ‘Gift Vouchers’ section includes a link to open a new web page which will allow users to enquire about gift vouchers for flying lessons. The user must enter their name, contact telephone number, email, preferred location (Glasgow, Edinburgh or Prestwick airport) and a preferred date for the lesson. Draw a wireframe for a form that would allow users to provide the information for a gift voucher. The HTML code used to create the input box to allow the user to enter their email is shown below. Email*<input type="text" name="email" size="50"> State the attributes that would need to be added to ensure that an email address of at least six characters must be entered. The CSS rule below is contained in an external stylesheet. footer p {font-size: 10px; } State the type of selector used in the code above and explain its effect. Another web page is to be created that will display video clips as shown in the wireframe below. logo.jpg plane.jpg Home Contact Us Introduction to Flying First Lesson Take Off Landing Monty’s Flying School About Lessons ©Monty’s Flying School Describe two different compatibility tests that should be carried out on this web page. Monty’s Flying School has a website to advertise their business.
• left margin (applied to #flightSimulator) AND vertical margin (applied to bottom of flight simulator or top of #giftVouchers) • height/width to #giftVouchers • clear:both to #giftVouchers #flightSimulator { margin-left:10px; margin- bottom:10px; } #giftVouchers{ width:790px;height:120px; clear:both; } • Name, contact telephone number, email indicating required • Location and date as suitable drop down, radio buttons etc • Submit button • minlength • required • Descendant • Means styling only applied to p elements in the footer • Displays/functions as intended on different browsers • Displays/functions as intended on different devices
Previous question: Higher Computing Science 2024 Question 17