Browser function: multiple tabs

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Browser function: multiple tabs

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What does a browser's tabs feature let you do?
A Keep several web pages open at once in one window
B Keep only one web page open in the whole browser
2. You want to open a second web page without closing the first one. What do you do?
A Open a new tab
B Delete your browsing history
3. How do you move from one open page to another using tabs?
A Type the same URL into the address bar again
B Click the tab for the page you want
4. Which statement about tabs is true?
A Many pages can be open in one window
B Each open page needs its own separate browser window
5. A student is reading a recipe and wants to check a video as well, without losing the recipe. Which is better?
A Replace the recipe page with the video page
B Open the video in a new tab and switch between the two

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Ctrl + T ATabs let you keep the first page open. You do not need to close it, so you would lose your place for no reason.
2Ctrl + Tab BSwitches to the next open tab without closing or reloading the pages
3A browser keeps many pages open in one window using tabs COpens a new tab so another web page can be loaded in the same browser window
4Switching tabs lets you move between open pages and keep your place DWindow 1: Tab 1 = school-email, Tab 2 = news, Tab 3 = revision-notes
5To read a second page, close the first tab and then open a new one ETabs share one window. Several tabs sit in a single browser window, so no extra windows are needed.
6Each tab needs its own separate browser window Fclick Tab 2 -> show news page, Tab 1 stays open

Definitions

multiple tabs

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
<a href="news.html" target="______">Go</a>
2.
<a href="news.html" ______="_blank">Go</a>
3.
window.____("news.html", "_blank");
4.
let tabs = ["Maths", "News"]; tabs.____("Mail");
5.
<_ href="news.html" target="_blank">Go</a>

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A window ← NEW Window()
B window.closeTab("bbc.com")
C window.openTab("maps.com")
Question 2
A tabs ← 1
B OUTPUT "Page 1 open"
C tabs ← tabs + 1
D OUTPUT "Tabs open: " tabs
Question 3
A window.openTab("news.com")
B window.openTab("mail.com")
C window.switchTo("news.com"
Question 4
A window ← NEW Window()
B window.tabs ← ""
C window.tabs.add("shop.com")
Question 5
A IF key = "Ctrl+T"
B window.openTab("")
C ENDIF

Answer Key

Browser function: multiple tabs
Section A: Quick Questions
Q1
A — Keep several web pages open at once in one window
Q2
A — Open a new tab
Q3
B — Click the tab for the page you want
Q4
A — Many pages can be open in one window
Q5
B — Open the video in a new tab and switch between the two
Section B: Match the Pairs
Q1
Ctrl + T → Opens a new tab so another web page can be loaded in the same browser window
Q2
Ctrl + Tab → Switches to the next open tab without closing or reloading the pages
Q3
A browser keeps many pages open in one window using tabs → Window 1: Tab 1 = school-email, Tab 2 = news, Tab 3 = revision-notes
Q4
Switching tabs lets you move between open pages and keep your place → click Tab 2 -> show news page, Tab 1 stays open
Q5
To read a second page, close the first tab and then open a new one → Tabs let you keep the first page open. You do not need to close it, so you would lose your place for no reason.
Q6
Each tab needs its own separate browser window → Tabs share one window. Several tabs sit in a single browser window, so no extra windows are needed.
Section C: Definitions
Q1
multiple tabs — A browser feature that keeps several web pages open at once in one window, so you can open a new tab and switch between pages without losing your place.
Section D: Fill in the Blanks
Q1
<a href="news.html" target="_blank">Go</a>
Q2
<a href="news.html" target="_blank">Go</a>
Q3
window.open("news.html", "_blank");
Q4
let tabs = ["Maths", "News"]; tabs.push("Mail");
Q5
<a href="news.html" target="_blank">Go</a>
Section E: Spot the Error
Q1
B — closeTab removes a page. To open another page in the same window you need window.openTab("bbc.com").
Q2
D — The text and the variable must be joined with &. It should be OUTPUT "Tabs open: " & tabs.
Q3
C — The closing bracket is missing. It should be window.switchTo("news.com") to move back to the news tab.
Q4
B — A window with many tabs needs a list to hold many pages. A single empty string holds no list. It should be window.tabs ← [].
Q5
A — An IF statement must end its condition with THEN. It should be IF key = "Ctrl+T" THEN.