URL学习

作者: listems | 来源:发表于2023-03-04 22:52 被阅读0次

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

    参考:

    相关文章

      网友评论

          本文标题:URL学习

          本文链接:https://www.haomeiwen.com/subject/aufuldtx.html