The URL Schemes

A URL (Uniform Resource Locator) is a string of characters that specifies the location of a resource on the internet. URL schemes define the protocol used to access different types of resources, determining how browsers and applications interact with various services.

URL schemes follow the format scheme:// followed by the resource location. Each scheme has specific rules and behaviors for accessing its corresponding resource type.

Common URL Schemes HTTP HTTPS FTP FILE MAILTO TEL SMS Each scheme defines how to access specific resource types

HTTP

HTTP (Hypertext Transfer Protocol) is the standard protocol for accessing web pages on the internet. When you enter a URL beginning with http://, your browser sends a request to the server using HTTP protocol.

HTTP is a stateless protocol, meaning each request and response is treated as an independent transaction without maintaining persistent connections between client and server.

HTTPS

HTTPS (Hypertext Transfer Protocol Secure) is the secure version of HTTP, commonly used for sensitive information like login pages and payment forms. URLs beginning with https:// establish encrypted connections using SSL/TLS protocol.

HTTPS encrypts data transmitted between client and server, ensuring information cannot be intercepted or read by third parties during transmission.

FTP

FTP (File Transfer Protocol) is used for transferring files over the internet. URLs beginning with ftp:// open FTP clients that allow browsing server directories and uploading/downloading files.

FTP operates as a client-server protocol requiring both FTP client software and FTP server to facilitate file transfers.

File

The file:// scheme accesses files on the local system, typically used for resources stored on the same computer as the web browser.

file:///path/to/file

File paths can be absolute (full path from root directory) or relative (path from current directory).

Mailto

The mailto: scheme creates links that open the default email client with pre-filled recipient information.

mailto:email@address.com

Clicking mailto links opens email applications with the specified address in the "To" field, allowing users to compose and send messages normally.

Tel

The tel: scheme initiates phone calls when clicked, particularly useful on mobile devices.

tel:+1234567890

Phone numbers use E.164 formatting standard with country code, area code, and local number preceded by "+" with no spaces.

SMS

The sms: scheme initiates text message composition when clicked.

sms:+1234567890

Like tel schemes, SMS uses E.164 formatting and opens the default messaging application with the specified phone number.

Comparison of URL Schemes

Scheme Purpose Security Common Use
HTTP Web page access Unencrypted General web browsing
HTTPS Secure web access SSL/TLS encrypted Sensitive data transmission
FTP File transfer Basic authentication File sharing servers
Mailto Email composition Client-dependent Contact links

Conclusion

URL schemes define how different types of resources are accessed over networks, from web pages and files to communication services. Understanding these schemes helps developers create appropriate links and enables users to interact effectively with various online resources and applications.

Updated on: 2026-03-16T23:36:12+05:30

4K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements