what is the # symbol in the url

后端 未结 5 955
失恋的感觉
失恋的感觉 2020-12-10 13:28

I went to some photo sharing site, so when I click the photo, it direct me to a url like

www.example.com/photoshare.php?photoid=1234445

. and w

5条回答
  •  失恋的感觉
    2020-12-10 13:57

    It is the name attribute of an anchor URL: http://www.w3schools.com/HTML/html_links.asp

    It is used to make a bookmark within an HTML page (and not to be confused with bookmarks in toolbars, etc.).

    In your example, if you bookmarked the page with the # symbol in the URL, when you visit that bookmark again it will display the last image that you viewed, most likely an image that has the id of 3338901.

提交回复
热议问题