URL(Uniform Resource Location):
URL is full address used to find something on the internet, like a webpage or file.
It tells your browser where to go and how to get the data.
Part of URL:
- Protocol: (http , https) => How to access the resource. It tells how to fetch data.
Data Fetch means:Getting data from a server or API and using it.
Explain:
When you open a website (like Instagram or YouTube), the data shown on your screen (posts, videos, users) is not stored locally. It is stored on a server. We fetch that data from the server and bring it to the browser. This process is called fetching.
- Domain: tells which website.
Explain:
A computer actually has an IP address (like 142.250.190.78), but it is difficult to remember. So, for easy to use, we use a domain name instead of the IP address.”
Example: YouTube.com ,Google.com , amazon.in.
- Path: Tells which page.
Explain:
https://example.com/about
example.com → website
/about → path
Go to the About page.
Why good URLs important:
- Easy to understand
- Easy to Share
- Helps search engines understand your site.
SEO (Search Engine Optimization)means: Make your website for search engine to find , understand , and recomend to user
So, a clean and clear URL makes ypur website better.
URL Structure
A URL (Uniform Resource Locator) consists of several parts that pinpoint a specific web resource's location.
https:// Scheme:
Defines the protocol used to access the resource.
www. Subdomain:
Specifies a subdivision of the main domain .
example. Domain:
Identifies the main website name.
com Top-Level Domain:
Indicates the domain extension.
:443 Port Number:
Specifies the server port.
/blog/article/search Path:
Points to the resource location on the server.
? Query:
The ? symbol that starts query parameters.
docid=720&hl=enParameters:
Passes data as key-value pairs using &.
#dayone Fragment:
Refers to a specific section within the resource using #.

Top comments (0)