URL学习

2023-03-04  本文已影响0人  listems

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 # 在页面定位

参考:

上一篇下一篇

猜你喜欢

热点阅读