Resources | Subject Notes | Computer Science
A Uniform Resource Locator, commonly known as a URL, is a specific address used to identify a resource on the internet. It essentially tells a web browser where to find a particular file or webpage.
A URL provides information about:
A typical URL consists of several parts, separated by periods and slashes. Here's a breakdown:
Part | Description | Example |
---|---|---|
Protocol | Specifies the communication method. | https:// |
Domain Name | The name of the server. | www.example.com |
Top-Level Domain (TLD) | The suffix of the domain name (e.g., .com, .org, .uk). | .com |
Path | Specifies the location of the resource on the server. | /images/logo.png |
Query Parameters | Additional information passed to the server. | ?search=computer+science&sort=relevance |
Fragment Identifier | Specifies a specific section within a resource. | #section2 |
Here are some examples of URLs:
Understanding URLs is fundamental to understanding how the internet works and how web browsers locate and retrieve information.