- Foundation
- About 15 min
- 5 practice questions
Web pages, URLs, HTTP and HTTPS, and the web browser
Tell a web page from a website, read every part of a URL, know when a connection is secure, and use the main tools of a web browser.
If something looks wrong, please tell us.
Once you are online, you meet the web through addresses and a browser. Reading an address correctly tells you where you are, whether the connection is secure and sometimes whether a site is genuine. This lesson covers the words you need, how a URL is built, the difference between HTTP and HTTPS, and the main parts of a browser.
The words of the web
| Term | Meaning |
|---|---|
| Web page | A single document on the web, written in HTML, which may hold text, images, video and links |
| Website | A group of related web pages under one domain name, such as all the pages of a college |
| Home page | The main or starting page of a website; also the page a browser opens first |
| Hyperlink | Clickable text or image that takes you to another page or file |
| HTML | HyperText Markup Language, the language used to build web pages |
| Web server | A computer that stores websites and sends pages to browsers when asked |
| Web portal | A website that gathers many services or links in one place, often after a login |
A static web page shows the same content to everyone until its author changes it. A dynamic page is built when you ask for it, so it can show your own details, such as your train booking or your marks.
Static or dynamic page?
-
Static
- Same content for everyone
- Changes only when its author changes it
-
Dynamic
- Built when you ask for it
- Can show your own details, such as marks
Reading a URL
A URL (Uniform Resource Locator) is the full address of a page or file on the web. Look at this example and its parts:
| Part | In the example | What it tells you |
|---|---|---|
| Protocol (scheme) | https:// | The rules used to fetch the page; https means a secure connection |
| Subdomain | www | A section of the domain; www is the traditional one for websites |
| Domain name | example.co.in | The name of the website, registered by its owner |
| Top-level domain | .in | The last part of the domain; .in is India's country code |
| Path | /books/list.html | The folder and file on the server |
| Query string | ?page=2 | Extra information sent to the page, after a question mark |
| Fragment | #top | A spot within the page, after a hash sign |
| Domain ending | Usually used by |
|---|---|
| .com | Commercial organisations (now open to almost anyone) |
| .org | Organisations, often non-profit |
| .net | Originally network providers; now general use |
| .edu | Educational institutions, mainly in the United States |
| .gov | Government bodies (for India, addresses end in .gov.in) |
| .in | India's country-code domain; also .co.in, .ac.in (academic), .gov.in |
HTTP and HTTPS
HTTP (HyperText Transfer Protocol) is the set of rules browsers and web servers use to exchange pages. HTTPS is HTTP Secure: the same exchange, but encrypted using TLS (Transport Layer Security, which replaced the older SSL). Encryption scrambles the data so that someone listening on the network cannot read your password, card number or messages. Browsers show a padlock or similar sign for HTTPS pages. By default, HTTP uses port 80 and HTTPS port 443.
Note what HTTPS does not promise: it protects the connection, not the honesty of the site. A fake site can also use HTTPS. Always check the domain name itself.
HTTP or HTTPS?
-
HTTP
- Rules for exchanging pages
- Not encrypted
- Port 80 by default
-
HTTPS
- The same exchange, encrypted with TLS
- Padlock or similar sign
- Port 443 by default
- Does not prove the site is honest
The web browser
A web browser is a program that fetches web pages and displays them. Common browsers include Google Chrome, Mozilla Firefox, Microsoft Edge, Apple Safari and Opera. Their main tools are much the same:
- Address bar - type a URL or a search; it shows the page's address.
- Back, Forward, Refresh (Reload) and Home buttons.
- Tabs - several pages open in one window.
- Bookmarks (called Favourites in some browsers) - saved addresses of pages you want to revisit.
- History - a list of pages you have visited.
- Downloads - files you have saved from the web.
- Private or incognito mode - a window that does not keep history, cookies or form entries after you close it.
Worked example 1: break down a URL
Break down this address:
- http://exams.example.ac.in/results/2024.pdf
Working: the protocol is http (not secure); the subdomain is exams; the domain is example.ac.in, whose ending .ac.in is used by academic institutions in India; the path is /results/ and the file is 2024.pdf, a PDF document.
Worked example 2: where to type a password
Two login pages look identical. One address starts with https and the domain is the bank's real name; the other starts with http. Working: only the HTTPS page encrypts what you type, so only it can protect the password in transit. Even then, confirm the domain is exactly right, since HTTPS alone does not prove a site is genuine.
URL = protocol + domain + path (+ query + fragment). HTTPS encrypts the connection; it does not prove the site is honest - check the domain too.
Key takeaways: a website is a set of web pages under one domain; pages are written in HTML and linked by hyperlinks. A URL names the protocol, domain, path and sometimes a query and fragment. HTTPS encrypts traffic. A browser offers tabs, bookmarks, history, downloads and private mode.
Check your understanding
-
1. In https://www.example.org/news/today.html, what is the path?
- https
- www.example.org
- /news/today.html
- .org
Show answer
Answer: C. The path follows the domain and names the folder and file on the server: /news/today.html. https is the protocol and www.example.org the domain.
-
2. What does the S in HTTPS stand for, and what does it add?
- Secure; it encrypts data between browser and server
- Speed; it loads pages faster
- Server; it stores the page
- Search; it finds pages
Show answer
Answer: A. HTTPS is HTTP Secure. It encrypts the data exchanged so others on the network cannot read it.
-
3. Which language is used to build web pages?
- URL
- HTML
- HTTP
- ISP
Show answer
Answer: B. HTML (HyperText Markup Language) builds web pages. HTTP is the transfer protocol, a URL is an address and an ISP is a provider.
-
4. A saved address of a page you want to visit again is called a:
- History entry
- Cookie
- Download
- Bookmark
Show answer
Answer: D. A bookmark (or favourite) is saved deliberately for later. History records every page visited, whether or not you want to return.
-
5. A page's address starts with https and shows a padlock. Which statement is correct?
- The site is guaranteed to be genuine
- The page cannot contain any virus
- The connection is encrypted, but you should still check the domain name
- The page is stored on your own computer
Show answer
Answer: C. HTTPS encrypts the connection only. Fraudulent sites can also use HTTPS, so you must still check that the domain is the real one.
Sign in to keep track of the lessons you finish.