Year 11 Computing — What a page is made of
Work out how many separate files a browser has to fetch to show a page, and what changes when some of them are already stored.
Name: ________________________
1.Sort each of these by whether it arrives inside the HTML file itself or is a separate file the browser has to ask for.
Groups: Comes inside the HTML file · Is a separate file, asked for on its own
- A photograph on the page
- The stylesheet
- The picture that name refers to
- The name of a picture
- The words of a paragraph
- A heading
2.A page needs its HTML and four other files. The reader opens it again a moment later, and the browser has all four of the other files stored from the first visit but fetches the HTML afresh. How many files does it fetch this time?
3.A page's HTML is 6 KB and its stylesheet is 4 KB, and it names two pictures of 30 KB each. How many KB does the browser fetch altogether to show the page?
4.A page's files come to 90 KB altogether, of which the HTML is 5 KB. On a second visit everything except the HTML is already stored, and the HTML is fetched again. How many KB does the browser fetch this time?
5.A page's HTML names three pictures and one stylesheet, and needs nothing else. Counting the HTML itself, how many separate files must the browser fetch to show the page completely?
6.Put these pages in order of how many files a browser must fetch to show each one, fewest first.
- A page with one stylesheet and one picture
- A page with one stylesheet and three pictures
- A page with two stylesheets and five pictures
- A page of writing with no pictures and no stylesheet
7.A page's HTML names five pictures. One of the five has been deleted from the machine holding the page, and the other four are there. How many of the pictures appear on the screen?
8.A page needs eight files altogether. On a second visit the browser already has six of them stored, but the HTML has been changed since and must be fetched again, and there is one picture the browser has never seen. How many files does it fetch?
Answer key — Year 11 Computing — What a page is made of
- 1. The words of a paragraph → Comes inside the HTML file; A photograph on the page → Is a separate file, asked for on its own; A heading → Comes inside the HTML file; The stylesheet → Is a separate file, asked for on its own; The name of a picture → Comes inside the HTML file; The picture that name refers to → Is a separate file, asked for on its own
- 2. 1
- 3. 70
- 4. 5
- 5. 5
- 6. 1. A page of writing with no pictures and no stylesheet 2. A page with one stylesheet and one picture 3. A page with one stylesheet and three pictures 4. A page with two stylesheets and five pictures
- 7. 4
- 8. 2