+ 3
what are the components of url?
can you describe the components of url such as, '#','?' and '%' used in url's. such as example, https://www.something.com/file/?abc=url and https://www.something.com/somepath#/path and similarly for '%' thanks in advance.
1 Answer
+ 2
Hi,
? is used to mention the parameters you are passing through URL to the server.
Eg. https://www.google.com/search?q=sololean
Here a query 'sololearn' is passed to Google to give us results.
# is use to describe the ID selector. In a big webpage, there are many sections, thus to redirect user to a particular section of same page, we use #.
Eg. https://themify.me/demo/themes/parallax/#contact
% is URL encoding character. It is used with predefined numbers. Eg. %20 means a space.
A space in the URL is normally replaced with a plus (+) sign or with %20.