URL part: the web page or file name

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

URL part: the web page or file name

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. In https://www.shop.com/products/shoes.html, which part names the page wanted?
A https://www.shop.com
B /products/shoes.html
2. In /products/shoes.html, what is 'products'?
A A folder in the path
B The file name
3. Which one is the file name in /products/shoes.html?
A shoes.html
B /products/
4. What does the .html extension at the end of shoes.html tell us?
A The file is stored on the user's computer
B The file is a web page written in HTML
5. A user types https://www.shop.com with no file name. What happens?
A The server sends a default page, such as the home page
B The server sends back an error every time

Match the Pairs

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

Left columnRight column
1/products/shoes.html Aabout.html
2https://www.shop.com/ B/images/logos/school.png
3The file extension .html shows the file is a web page CThe path and file name at the end of a URL: the products folder, then the web page shoes.html
4Folders in the path are separated by / and come before the file name DA backslash was used in the path. Folders in a URL are separated by forward slashes, so it should be /products/shoes.html.
5https://www.shop.com/products\shoes.html EA URL with no file name, so the server sends the site's default page, such as index.html
6https://www.shop.com/shoes html FThe file name has a space and no dot, so the extension is missing. It should be shoes.html with a dot before html.

Definitions

/products/shoes.html

Fill in the Blanks

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

1.
https://www.shop.com/products/shoes_____
2.
https://www.shop.com_products/shoes.html
3.
Path: /images/ File: logo.png https://www.school.com/______/logo.png
4.
https://www.shop.com/ Default page sent: _____.html
5.
URL: https://www.shop.com/sale/boots.html Folder: /sale/ File name: __________

Spot the Error

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

Question 1
A https://a.com\men\hat.html
B Domain: a.com
C Path: /men/
D File name: hat.html
Question 2
A https://a.com/kids/toys.html
B Protocol: https
C Path: /kids/
D File name: toys
Question 3
A https://a.com/
B No file name is given
C Server sends a default page
D Often named index.com
Question 4
A url = a.com/shop/cart.html
B folder = shop
C file = shop
D ext = html
Question 5
A https://a.com/music/rock.html
B Path: /rock.html
C File name: rock.html
D Extension: .html

Answer Key

URL part: the web page or file name
Section A: Quick Questions
Q1
B — /products/shoes.html
Q2
A — A folder in the path
Q3
A — shoes.html
Q4
B — The file is a web page written in HTML
Q5
A — The server sends a default page, such as the home page
Section B: Match the Pairs
Q1
/products/shoes.html → The path and file name at the end of a URL: the products folder, then the web page shoes.html
Q2
https://www.shop.com/ → A URL with no file name, so the server sends the site's default page, such as index.html
Q3
The file extension .html shows the file is a web page → about.html
Q4
Folders in the path are separated by / and come before the file name → /images/logos/school.png
Q5
https://www.shop.com/products\shoes.html → A backslash was used in the path. Folders in a URL are separated by forward slashes, so it should be /products/shoes.html.
Q6
https://www.shop.com/shoes html → The file name has a space and no dot, so the extension is missing. It should be shoes.html with a dot before html.
Section C: Definitions
Q1
/products/shoes.html — The last part of a URL. It names the web page or file wanted: folders (the path) then the file name, like shoes.html. With no file name, the server sends a default page.
Section D: Fill in the Blanks
Q1
https://www.shop.com/products/shoes.html
Q2
https://www.shop.com/products/shoes.html
Q3
Path: /images/ File: logo.png https://www.school.com/images/logo.png
Q4
https://www.shop.com/ Default page sent: index.html
Q5
URL: https://www.shop.com/sale/boots.html Folder: /sale/ File name: boots.html
Section E: Spot the Error
Q1
A — URLs separate folders and the file name with forward slashes (/), not backslashes. It should be https://a.com/men/hat.html.
Q2
D — The file name includes its extension. The file name is toys.html, not just toys.
Q3
D — A default page is a web page file such as index.html. .com is a domain ending, not a file extension for a web page.
Q4
C — shop is the folder (part of the path). The file name is the last part, so it should be file = cart.html.
Q5
B — The path is the folder, which is /music/. rock.html is the file name, not part of the path.