Chapter 9 Answer Key

The World of Windows

Windows of Webville


Fill in the Blanks

1. The target attribute controls where a page opens.

2. _blank opens a link in a new window/tab.

3. Links normally open in the same window.

4. Windows help users navigate between webpages.


Choose the Correct Option

1. Which attribute controls window opening?
✅ b) target

2. Which value opens a new tab?
✅ a) _blank

3. Links normally open in:
✅ b) same window


Taggy Challenge

Open a link in a new window or tab when users may want to keep the current page open while viewing another website or resource.


Match the Window Parts

ItemMeaning
A. target2. Attribute controlling window
B. _blank3. Opens new window/tab
C. Normal link1. Opens in same window
Answers:

A → 2
B → 3
C → 1

Code Explorer

<a href="https://webville.com" target="_blank">
Visit Webville
</a>

1. What is the destination link?
✅ https://webville.com

2. Where will it open?
✅ In a new window/tab

3. Which attribute controls this behavior?
✅ target


Debug Mission

Error Found:

✅ Missing closing quotation mark in the target value.

Correct Code:

<a href="https://example.com" target="_blank">
Visit Example
</a>

Build Your Own Link

Sample Answer:

<a href="https://example.com" target="_blank">
Visit Example
</a>

Quick Builder Check

1. Which attribute controls windows?
✅ target

2. What does _blank do?
✅ Opens the link in a new window or tab.

3. Why not open ALL links in new windows?
✅ Too many new tabs can confuse users and make browsing harder.


🏆 Builder Badge Earned

Window Navigator

Congratulations! You can now control how links open using the target attribute.