URL
一句话解释
URL (Uniform Resource Locator) 是地址那个 identifies 特定 resource on web.
用大白话说
A URL is the address you type into a browser to reach a web page, image, API endpoint, or any other resource. It tells the browser which server to contact, which path to request, and sometimes which parameters to send.
A URL has several parts: the scheme (HTTPS), the host or domain (示例.com), the port (optional, e.g. :443), the path (/users/42), the query string (?排序=name), and the fragment (#小节). Each part plays a role in locating the exact resource you want.
URLs are fundamental to how the web works. Every link, every image source, every API call uses a URL. Understanding their structure helps you build routes, debug requests, and design clean, readable web addresses.
示例
https://example.com:443/users/42?sort=name#profile
https → scheme (protocol)
example.com → host (domain)
:443 → port (optional)
/users/42 → path
?sort=name → query string
#profile → fragment (in-page anchor)URL broken 到它的组件: scheme, host, port, path, 查询, and 片段.
相关术语
相关资源
相关课程
- URL
学习结构的 URLs
相关工具
- URL Encoder
百分比-encode and decode URLs
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。