ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
7 marks · Media file formats and file size
The image used on the home page is stored as a jpeg file. State one reason why jpeg files are used to store images on a website instead of bitmap. All web pages and media are stored in folders as shown below. > website > website > Assets Name Colosseum JPG > LeaningTower Home PNG Romeinfo Pisa MP3 Rome Rome MP4 Assets JPG File PNG File MP3 File MP4 File A hyperlink to the Pisa.html page is to be added to the home page as shown below. Visit these Italian cities • Pisa • Rome Complete the code below that would implement this list. <p>Visit these Italian cities </p> Complete the HTML code below to add the sound file to the Rome.html web page. < Controls> <source src=" " type="audio/mpeg"> <_/ > A travel website about Italy has a home page containing a list of cities. The home page is shown below. https://www.goneawaytravel.co.uk Italian Cities . Pisa Rome Visit these Italian cities .
• smaller file size/compressed • faster rate of transfer/download • compatible with multiple browsers Award 1 mark for any one bullet. • opening and closing <ul></ul> • both <li></li> elements • link <a> enclosing pisa Ignore syntax errors. Code for correct answer: <ul> <li> <a href="Pisa.html"> Pisa </a></li> <li> Rome </li> </ul> • audio added to opening and closing tag • correct path: assets/ • romeinfo.mp3 <audio controls> <source src =”Assets/Romeinfo.mp3”> </audio>