URL学习

The URI generic syntax consists of a hierarchical sequence of five components

URI = scheme ":" ["//" authority] path ["?" query] ["#" fragment]
authority = [userinfo "@"] host [":" port]

? query component

Query delimiter Example
Ampersand (&) key1=value1&key2=value2
Semicolon (;) key1=value1;key2=value2

scheme是http, https, ftp 这种

https://www.youtube.com/watch?v=-ykeT6kk4bk
?query key-value pairs

Internet Tips: UNderstanding URLs

The basic parts of a URL, including the scheme, domain name, file path, parameters, and anchor
URL:Uniform Resource Locator 统一资源定位符 like a street address
scheme: HTTP HTTPS(extra security)
domain name:
    subdomain: www/accounts
    top-level domain: .com
        educational institutions
        organizations 
        government sites
        country
file path
parameter string: ?query key value paris 
anchor # 在页面定位

参考:

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容